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.8+ supported.
- Django 3.2+ supported.
Setup
- Install from pip:
pip install django-sites-extra
- Modify
settings.py
by adding the app toINSTALLED_APPS
:INSTALLED_APPS = [ # ... "sites_extra", # ... ]
- Execute Django's command
migrate
inside your project's root:python manage.py migrate Running migrations: Applying sites_extra.0001_initial... OK
- Modify
settings.py
by 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
Release history Release notifications | RSS feed
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.1.tar.gz
(141.2 kB
view hashes)
Built Distribution
Close
Hashes for django_sites_extra-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce919c1a00dfef281a3ee4051cdd0f1d3dd5426bc999277e0c858d1f939aa679 |
|
MD5 | 7815452b1e90cf57ac410df856c4b458 |
|
BLAKE2b-256 | a96a6fb43b9e597423700d4d39473060f26de34c1638e90d9bc4764151c21b12 |