Skip to main content

django-sites-extra PyPi license

PyPi status PyPi version PyPi python version PyPi downloads PyPi downloads PyPi downloads

GitHub GitHub release GitHub release

Test codecov.io pre-commit.ci status gitthub.com

Check Demo Project

  • Check the demo repo on GitHub

Requirements

  • Python 3.9+ supported.
  • Django 3.2+ supported.

Setup

  1. Install from pip:
    pip install django-sites-extra
    
  2. Modify settings.py by adding the app to INSTALLED_APPS:
    INSTALLED_APPS = [
        # ...
        "sites_extra",
        # ...
    ]
    
  3. Execute Django's command migrate inside your project's root:
    python manage.py migrate
    Running migrations:
      Applying sites_extra.0001_initial... OK
    
  4. Modify settings.py by adding the app's context processor to TEMPLATES:
    TEMPLATES = [
        {
            # ...
            "OPTIONS": {
                "context_processors": [
                    # ...
                    "sites_extra.context_processors.info",
                    # ...
                ],
            },
        },
    ]
    
  5. Optionally, but sugguested, the Django's Current Site middleware is enabled inside settings.py:
    MIDDLEWARE = (
        # ...
        "django.contrib.sites.middleware.CurrentSiteMiddleware",
        # ...
    )
    

Run Example Project

git clone --depth=50 --branch=django-sites-extra https://github.com/DLRSP/example.git DLRSP/example
cd DLRSP/example
python manage.py runserver

Now browser the app @ http://127.0.0.1:8000

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_sites_extra-0.1.16.tar.gz (192.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sites_extra-0.1.16-py3-none-any.whl (190.2 kB view details)

Uploaded Python 3

File details

Details for the file django_sites_extra-0.1.16.tar.gz.

File metadata

  • Download URL: django_sites_extra-0.1.16.tar.gz
  • Upload date:
  • Size: 192.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_sites_extra-0.1.16.tar.gz
Algorithm Hash digest
SHA256 71fe55cc3313c8b98175271e06e7ec5a03c87a873b87e5613587c4e062e88da2
MD5 1289bd34a8c96b3a8e183b67986a469f
BLAKE2b-256 59234cc5ac96c16332fba37f444fe019b5460d8489dc232092f8cd6f6371b86c

See more details on using hashes here.

File details

Details for the file django_sites_extra-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sites_extra-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 66cdd053141c0b39eebfde3f2a6ea9fc51ee17596ddac2f840be38c4287489b8
MD5 d804a7c7cf0968c9faabe8e51f3a8a0a
BLAKE2b-256 bd412a68db05847b3e0943932f78f6e402befde25be42a3a0821906fd174ad11

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.17

2 files

This release

0.1.16 This release

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page