Skip to content

Commit c401ad4

Browse files
committed
Update TEMPLATES settings for Django 1.8
1 parent cd54729 commit c401ad4

3 files changed

Lines changed: 22 additions & 8 deletions

File tree

django/sierra/sierra/settings/base.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,28 @@ def raise_setting_error(setting):
136136
# Make this unique, and don't share it with anybody.
137137
SECRET_KEY = get_env_variable('SECRET_KEY')
138138

139-
# List of callables that know how to import templates from various sources.
140-
TEMPLATE_LOADERS = (
141-
'django.template.loaders.filesystem.Loader',
142-
'django.template.loaders.app_directories.Loader',
143-
# 'django.template.loaders.eggs.Loader',
144-
)
139+
TEMPLATES = [
140+
{
141+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
142+
'DIRS': [
143+
# insert your TEMPLATE_DIRS here
144+
],
145+
'APP_DIRS': True,
146+
'OPTIONS': {
147+
'context_processors': [
148+
# Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
149+
# list if you haven't customized them:
150+
'django.contrib.auth.context_processors.auth',
151+
'django.template.context_processors.debug',
152+
'django.template.context_processors.i18n',
153+
'django.template.context_processors.media',
154+
'django.template.context_processors.static',
155+
'django.template.context_processors.tz',
156+
'django.contrib.messages.context_processors.messages',
157+
],
158+
},
159+
},
160+
]
145161

146162
MIDDLEWARE_CLASSES = (
147163
'corsheaders.middleware.CorsMiddleware',

django/sierra/sierra/settings/dev.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from .base import *
66

77
DEBUG = True
8-
TEMPLATE_DEBUG = True
98

109
# The logging setup from base.py will be used by default, but you can set
1110
# up your own loggers here, if you'd like, to override the default setup.

django/sierra/sierra/settings/production.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
raise_setting_error('STATIC_ROOT')
1010

1111
DEBUG = False
12-
TEMPLATE_DEBUG = False
1312

1413
# SolrMarc
1514
SOLRMARC_CONFIG_FILE = 'production_config.properties'

0 commit comments

Comments
 (0)