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.23
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.23.tar.gz | 22.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sites_extra-0.1.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 96.7 kB
Release files / django_sites_extra-0.1.23.tar.gz
| Download URL | django_sites_extra-0.1.23.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4d947786bc300aa8881234005e7f443adee07bf4e9db26eb25173a8633269bb
|
|
BLAKE2b-256 checksum How to use checksums |
f4a554207dccfbc11f7b8d98a035f4fc0be822b488ae700d95b2d6cca78012c5
|
| 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.23-py3-none-any.whl
| Download URL | django_sites_extra-0.1.23-py3-none-any.whl |
|---|---|
| Size | 74.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2fd5fc3e84302115b2cc0c85fd18f1d2b448852e400b2cc7850a5ab826323ba
|
|
BLAKE2b-256 checksum How to use checksums |
2424b80d6247eae77fc9c499f23086f632004a15bea136a38f6894bb8fe53a1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|