leonardo-dbtemplates

Template loader for templates stored in the database. Leonardo Fork from Jannis Leidel


License
Other
Install
pip install leonardo-dbtemplates==1.0.0a1

Documentation

django-dbtemplates

Build Status

dbtemplates is a Django app that consists of two parts:

  1. It allows you to store templates in your database
  2. 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/jezdez/django-dbtemplates

Compatibility Roadmap

  • 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 !

Setup for Django 1.8

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', ]

``