summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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',