summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-01-06 19:05:44 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-01-06 19:05:44 (GMT)
commit7a172c49277a17008f4f6c3303501b86f6df2118 (patch)
tree62d5cbf177d576763d4306af7ab0bd4e7131a0c7
parentf4edd054b264ffe0002dad2ef41bf45a95e4928a (diff)
updated TEMPLATE settings to new style
-rw-r--r--pv/settings.py25
1 files changed, 20 insertions, 5 deletions
diff --git a/pv/settings.py b/pv/settings.py
index ead2704..d966f2c 100644
--- a/pv/settings.py
+++ b/pv/settings.py
@@ -43,11 +43,26 @@ STATIC_URL = '/static/'
SECRET_KEY = ''
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
- # 'django.template.loaders.eggs.Loader',
-)
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [
+ 'templates'
+ ],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.contrib.auth.context_processors.auth',
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.i18n',
+ 'django.template.context_processors.media',
+ 'django.template.context_processors.static',
+ 'django.template.context_processors.tz',
+ 'django.contrib.messages.context_processors.messages',
+ ],
+ },
+ },
+]
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',