Skip to content

Commit bc1d3ec

Browse files
committed
Use new TEMPLATES setting
1 parent 969358b commit bc1d3ec

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

test-settings.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,24 @@
6363
# Make this unique, and don't share it with anybody.
6464
SECRET_KEY = 'boing!'
6565

66-
# List of callables that know how to import templates from various sources.
67-
TEMPLATE_LOADERS = (
68-
'django.template.loaders.filesystem.Loader',
69-
'django.template.loaders.app_directories.Loader',
70-
# 'django.template.loaders.eggs.Loader',
71-
)
66+
TEMPLATES = [
67+
{
68+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
69+
'DIRS': [],
70+
'APP_DIRS': True,
71+
'OPTIONS': {
72+
'context_processors': [
73+
'django.contrib.auth.context_processors.auth',
74+
'django.template.context_processors.debug',
75+
'django.template.context_processors.i18n',
76+
'django.template.context_processors.media',
77+
'django.template.context_processors.static',
78+
'django.template.context_processors.tz',
79+
'django.contrib.messages.context_processors.messages',
80+
],
81+
},
82+
},
83+
]
7284

7385
MIDDLEWARE_CLASSES = (
7486
'django.middleware.common.CommonMiddleware',

0 commit comments

Comments
 (0)