Django application to extend the standard "sites" framework with extra utils.
Project description
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
Project details
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.4.tar.gz
(135.5 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.4.tar.gz.
File metadata
- Download URL: django_sites_extra-0.1.4.tar.gz
- Upload date:
- Size: 135.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f22d535b6d39b2ae3bba714a17472a0986800813bd05d6db1191b26d0bfe3069
|
|
| MD5 |
8362392d231158693ae3ba2fa9929ff6
|
|
| BLAKE2b-256 |
6673e03b96dedc88bd501770f422c85a5773d113116bbbe3d79d0dbb715bfe92
|
File details
Details for the file django_sites_extra-0.1.4-py3-none-any.whl.
File metadata
- Download URL: django_sites_extra-0.1.4-py3-none-any.whl
- Upload date:
- Size: 132.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d942ec73381f2652260b948383f957a238ee90004ec562261cec864f0e9119bc
|
|
| MD5 |
3f19b0408eecb0b1fb1c2bb3a76efd07
|
|
| BLAKE2b-256 |
66919eb3f1cd2572164b822f1c1209c51981876fefa13c36b26c53129e11b672
|