dbtemplates
is a Django app that consists of two parts:
- It allows you to store templates in your database
- It provides template loader that enables Django to load the templates from the database
It also features optional support for versioned storage and django-admin command, integrates with Django's caching system and the admin actions.
Please see http://django-dbtemplates.readthedocs.org/ for more details.
The source code and issue tracker can be found on Github:
https://github.com/jazzband/django-dbtemplates
- 1.3.2
dbtemplates
dropped support for Django < 1.4 - 1.4 will be supported only Django >= 1.7, please freeze your requirements on specific version of
dbtemplates
!
1. Add to your INSTALLED_APPS: ``
- INSTALLED_APPS = (
...'django.contrib.sites', 'django.contrib.flatpages', 'dbtemplates',
)
`` 2. Add SITE_ID = 1 to your settings 3. Update settings for TEMPLATES['OPTIONS']:
- ``
- 'loaders': [
- 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'dbtemplates.loader.Loader', ]