summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-18 13:38:54 -0500
committerDan McGee <dan@archlinux.org>2014-10-18 13:38:54 -0500
commitf4a6eff33815a713b1141ea94a872bd7c6233699 (patch)
treefab00a66fa5223f6c7d36207ba83876c5db7e899 /settings.py
parentfe20aff2bb32a7e2a691f2f78b5cd617ed618243 (diff)
Install and wire up django-jinja
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/settings.py b/settings.py
index cc1f3a53..5b2195cb 100644
--- a/settings.py
+++ b/settings.py
@@ -60,10 +60,13 @@ TEMPLATE_DIRS = (
)
TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
+ 'django_jinja.loaders.FileSystemLoader',
+ 'django_jinja.loaders.AppLoader',
)
+# Send templates matching the following to the Jinja2 engine
+DEFAULT_JINJA2_TEMPLATE_EXTENSION = '.jinja'
+
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
@@ -114,6 +117,7 @@ INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.staticfiles',
'django_countries',
+ 'django_jinja',
'main',
'mirrors',