django-sites-extra 
GitHub

Test

Check Demo Project
- Check the demo repo on GitHub
Requirements
- Python 3.9+ supported.
- Django 3.2+ supported.
Setup
- Install from pip:
pip install django-sites-extra
- Modify
settings.pyby adding the app toINSTALLED_APPS:INSTALLED_APPS = [ # ... "sites_extra", # ... ]
- Execute Django's command
migrateinside your project's root:python manage.py migrate Running migrations: Applying sites_extra.0001_initial... OK
- Modify
settings.pyby adding the app's context processor toTEMPLATES:TEMPLATES = [ { # ... "OPTIONS": { "context_processors": [ # ... "sites_extra.context_processors.info", # ... ], }, }, ]
- 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
Metadata
Release files for django-sites-extra 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_sites_extra-0.1.18.tar.gz | 192.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sites_extra-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 382.5 kB
Release files / django_sites_extra-0.1.18.tar.gz
| Download URL | django_sites_extra-0.1.18.tar.gz |
|---|---|
| Size | 192.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6c0e620e209d3763d1fc9a13946b2b219e5fca9d9c7d16171214395a5aa2b9d
|
|
BLAKE2b-256 checksum How to use checksums |
cca3522227a546eb3b073523d1c4d9bba2fe7d5969455fba877faca6975e7e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / django_sites_extra-0.1.18-py3-none-any.whl
| Download URL | django_sites_extra-0.1.18-py3-none-any.whl |
|---|---|
| Size | 190.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
413b1b362fc1380b2af116d267bcfe7bea2d77c690cc4e92ad13697edd1574e9
|
|
BLAKE2b-256 checksum How to use checksums |
e7d261cc97f3322abcb318aaa96ed90fc8a5b3318e5c5f29a5383659ba435b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|