|
140 | 140 |
|
141 | 141 |
|
142 | 142 | ########## TEMPLATE CONFIGURATION |
143 | | -# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors |
144 | | -TEMPLATE_CONTEXT_PROCESSORS = ( |
145 | | - 'django.contrib.auth.context_processors.auth', |
146 | | - 'django.core.context_processors.debug', |
147 | | - 'django.core.context_processors.i18n', |
148 | | - 'django.core.context_processors.media', |
149 | | - 'django.core.context_processors.static', |
150 | | - 'django.core.context_processors.tz', |
151 | | - 'django.contrib.messages.context_processors.messages', |
152 | | - 'django.core.context_processors.request', |
153 | | -) |
154 | | - |
155 | | -# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-loaders |
156 | | -TEMPLATE_LOADERS = ( |
157 | | - 'django.template.loaders.filesystem.Loader', |
158 | | - 'django.template.loaders.app_directories.Loader', |
159 | | -) |
160 | | - |
161 | | -# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs |
162 | | -TEMPLATE_DIRS = ( |
163 | | - normpath(join(SITE_ROOT, 'templates')), |
164 | | -) |
| 143 | +# See: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATES |
| 144 | +TEMPLATES = [ |
| 145 | + { |
| 146 | + 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
| 147 | + 'DIRS': [ |
| 148 | + normpath(join(SITE_ROOT, 'templates')), |
| 149 | + ], |
| 150 | + 'APP_DIRS': True, |
| 151 | + 'OPTIONS': { |
| 152 | + 'context_processors': [ |
| 153 | + # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this |
| 154 | + # list if you haven't customized them: |
| 155 | + 'django.contrib.auth.context_processors.auth', |
| 156 | + 'django.template.context_processors.debug', |
| 157 | + 'django.template.context_processors.i18n', |
| 158 | + 'django.template.context_processors.media', |
| 159 | + 'django.template.context_processors.static', |
| 160 | + 'django.template.context_processors.tz', |
| 161 | + 'django.contrib.messages.context_processors.messages', |
| 162 | + 'django.template.context_processors.request', |
| 163 | + ], |
| 164 | + }, |
| 165 | + } |
| 166 | +] |
165 | 167 | ########## END TEMPLATE CONFIGURATION |
166 | 168 |
|
167 | 169 |
|
|
0 commit comments