summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-21 07:20:42 +0200
committerDan McGee <dan@archlinux.org>2010-06-21 07:20:42 +0200
commit03ccd8ad8c81f3bf719c7904d8ab76e280b1773b (patch)
treed485d7a355e555104dcace0101dab05304791150
parent702531680825f97b48ec671fb844ee7036d1b968 (diff)
downloadarchweb-03ccd8ad8c81f3bf719c7904d8ab76e280b1773b.tar.gz
archweb-03ccd8ad8c81f3bf719c7904d8ab76e280b1773b.tar.xz
Use the cached template loader
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--settings.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index f163d39..fb2efcb 100644
--- a/settings.py
+++ b/settings.py
@@ -63,6 +63,14 @@ TEMPLATE_DIRS = (
'%s/templates' % DEPLOY_PATH,
)
+TEMPLATE_LOADERS = (
+ ('django.template.loaders.cached.Loader', (
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.eggs.Loader',
+ 'django.template.loaders.app_directories.Loader',
+ )),
+)
+
# Set django's User stuff to use our profile model
# format is app.model
AUTH_PROFILE_MODULE = 'main.UserProfile'