Home > django-dynamictemplate

django-dynamictemplate

Django-dynamictemplate is a project mainly written in Python, it's free.

Pluggable app for django that switches templates dynamically.

Installation

pip install -e git://github.com/t0ster/django-dynamictemplate.git#egg=dynamic_template

Edit your settings.py file:

Add "dynamic_template.middleware.DynamicTemplateMiddleware" to your MIDDLEWARE_CLASSES.

Your TEMPLATE_LOADERS shoud look like this:

TEMPLATE_LOADERS = [ "dynamic_template.loaders.load_template_source", "django.template.loaders.filesystem.load_template_source", "django.template.loaders.app_directories.load_template_source", ]

Add "dynamic_template" to your INSTALLED_APPS.

Edit your urls.py file:

Add ("", include("dynamic_template.urls")), to your urlpatterns.

Previous:graph_gen_utils