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
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.14.tar.gz
(178.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sites_extra-0.1.14.tar.gz.
File metadata
- Download URL: django_sites_extra-0.1.14.tar.gz
- Upload date:
- Size: 178.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e0c9d625b7bec291fd351f2483dcebd0a96dfd4da351c594ba2431a412add5e
|
|
| MD5 |
fc5a5ce2536e88ab3857ee9e1b2a2f34
|
|
| BLAKE2b-256 |
094a2591eb606123c77c18b1f096d4d8bda7572498b6a45e2316fa133f4ca20a
|
File details
Details for the file django_sites_extra-0.1.14-py3-none-any.whl.
File metadata
- Download URL: django_sites_extra-0.1.14-py3-none-any.whl
- Upload date:
- Size: 176.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8690dda5b3a979ea2a2292d742199795b8b7f1d91cd8d89cc4bbd0b9992edae
|
|
| MD5 |
7dd67c252a8d6890bba9e7d039fec919
|
|
| BLAKE2b-256 |
edeaac6d88b3f176f231d1844e081e25805b2955f6a73ffcf4cfe99622c37e57
|