diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-18 19:31:17 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-18 19:31:17 -0500 |
commit | 32a0075b59f3f692d8084a041d4a10c6298cdc15 (patch) | |
tree | bc5f312dbfa5ccbb31addeeb2e10b819d87e31b9 /settings.py | |
parent | 21b8ff5cf2b60f862e3fc3cfb43d8d8af0d6189f (diff) | |
parent | 0e90423fc09f53317992bbb024e82ef65728aa11 (diff) |
Merge branch 'jinja'
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/settings.py b/settings.py index 368dcb73..ba6c68ee 100644 --- a/settings.py +++ b/settings.py @@ -60,11 +60,13 @@ TEMPLATE_DIRS = ( ) TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.eggs.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', @@ -115,6 +117,7 @@ INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.staticfiles', 'django_countries', + 'django_jinja', 'main', 'mirrors', @@ -180,6 +183,7 @@ if not TEMPLATE_DEBUG: TEMPLATE_LOADERS = ( ('django.template.loaders.cached.Loader', TEMPLATE_LOADERS), ) + JINJA2_BYTECODE_CACHE_ENABLE = True # Enable the debug toolbar if requested if DEBUG_TOOLBAR: |