Django application, implement theming concept for templates, flexible and configurable from admin interface.
You can install the most recent Django Template Theming version using pip: :
pip install django-template-theming
NOTE: The following settings should be added to the project file settings.py.
Add 'theming' to
INSTALLED_APPS
: :INSTALLED_APPS += ( 'theming', ) if using django-compressor make sure put theming before compressor
Add 'theming.middleware.ThemingMiddleware' to
MIDDLEWARE_CLASSES
: :MIDDLEWARE_CLASSES += ( 'theming.middleware.ThemingMiddleware', )
Add 'theming.template.Loader' to
TEMPLATE_LOADERS
: :TEMPLATE_LOADERS += ( 'theming.template.Loader', )
It should create a folder themes
at the project with the following structure: :
django_project/
| -- themes/
| -- default/ ** theme name
| -- static/ ** will collected by `collectstatic` management command
| | -- styles/
| | -- scripts/
| | -- images/
| -- templatefiles and folders
Development of django-template-theming happens at github and any idea and contribution is wellcome. https://github.com/wtayyeb/django-template-theming
- w.Tayyeb: https://github.com/wtayyeb