[damned-lies] Activate the cached template loader
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Activate the cached template loader
- Date: Sat, 18 Apr 2015 10:28:19 +0000 (UTC)
commit f155d5d4a8cb4113f07ad90f73296eb162e59e54
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Apr 18 12:27:18 2015 +0200
Activate the cached template loader
damnedlies/settings.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index 80a3b67..b5da2bb 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -96,8 +96,10 @@ SECRET_KEY = ''
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
+ ('django.template.loaders.cached.Loader', (
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.app_directories.Loader',
+ )),
)
TEMPLATE_CONTEXT_PROCESSORS = TCP + (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]