|
137 | 137 | # * Receive x-headers |
138 | 138 | INTERNAL_IPS = ("127.0.0.1",) |
139 | 139 |
|
140 | | -# List of callables that know how to import templates from various sources. |
141 | | -TEMPLATE_LOADERS = ( |
142 | | - "django.template.loaders.filesystem.Loader", |
143 | | - "django.template.loaders.app_directories.Loader", |
144 | | -) |
145 | | - |
146 | 140 | AUTHENTICATION_BACKENDS = ("mezzanine.core.auth_backends.MezzanineBackend",) |
147 | 141 |
|
148 | 142 | # List of finder classes that know how to find static files in |
149 | 143 | # various locations. |
150 | 144 | STATICFILES_FINDERS = ( |
151 | 145 | "django.contrib.staticfiles.finders.FileSystemFinder", |
152 | 146 | "django.contrib.staticfiles.finders.AppDirectoriesFinder", |
153 | | -# 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
| 147 | + # 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
154 | 148 | ) |
155 | 149 |
|
156 | 150 | # The numeric mode to set newly-uploaded files to. The value should be |
|
223 | 217 | # or "C:/www/django/templates". |
224 | 218 | # Always use forward slashes, even on Windows. |
225 | 219 | # Don't forget to use absolute paths, not relative paths. |
226 | | -TEMPLATE_DIRS = (os.path.join(PROJECT_ROOT, "templates"),) |
| 220 | +TEMPLATES = [ |
| 221 | + { |
| 222 | + 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
| 223 | + 'DIRS': [ |
| 224 | + # insert your TEMPLATE_DIRS here |
| 225 | + os.path.join(PROJECT_ROOT, "templates"), |
| 226 | + ], |
| 227 | + 'OPTIONS': { |
| 228 | + 'context_processors': [ |
| 229 | + # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this |
| 230 | + # list if you haven't customized them: |
| 231 | + 'django.contrib.auth.context_processors.auth', |
| 232 | + 'django.template.context_processors.debug', |
| 233 | + 'django.template.context_processors.i18n', |
| 234 | + 'django.template.context_processors.media', |
| 235 | + 'django.template.context_processors.request', |
| 236 | + 'django.template.context_processors.static', |
| 237 | + 'django.template.context_processors.tz', |
| 238 | + 'django.contrib.messages.context_processors.messages', |
| 239 | + 'mezzanine.pages.context_processors.page', |
| 240 | + "mezzanine.conf.context_processors.settings", |
| 241 | + "mezzanine.pages.context_processors.page", |
| 242 | + ], |
| 243 | + 'loaders': [ |
| 244 | + # insert your TEMPLATE_LOADERS here |
| 245 | + "django.template.loaders.filesystem.Loader", |
| 246 | + "django.template.loaders.app_directories.Loader", |
| 247 | + ], |
| 248 | + 'builtins': [ |
| 249 | + 'mezzanine.template.loader_tags', |
| 250 | + ] |
| 251 | + }, |
| 252 | + }, |
| 253 | + ] |
227 | 254 |
|
228 | 255 |
|
229 | 256 | ################ |
230 | 257 | # APPLICATIONS # |
231 | 258 | ################ |
232 | 259 |
|
233 | 260 | INSTALLED_APPS = ( |
234 | | - "flat", |
235 | | - #"moderna", |
236 | | - #"nova", |
237 | | - #"solid", |
| 261 | + "flat", |
| 262 | + #"moderna", |
| 263 | + #"nova", |
| 264 | + #"solid", |
238 | 265 | "django.contrib.admin", |
239 | 266 | "django.contrib.auth", |
240 | 267 | "django.contrib.contenttypes", |
|
256 | 283 | #"mezzanine.mobile", |
257 | 284 | ) |
258 | 285 |
|
259 | | -# List of processors used by RequestContext to populate the context. |
260 | | -# Each one should be a callable that takes the request object as its |
261 | | -# only parameter and returns a dictionary to add to the context. |
262 | | -TEMPLATE_CONTEXT_PROCESSORS = ( |
263 | | - "django.contrib.auth.context_processors.auth", |
264 | | - "django.contrib.messages.context_processors.messages", |
265 | | - "django.core.context_processors.debug", |
266 | | - "django.core.context_processors.i18n", |
267 | | - "django.core.context_processors.static", |
268 | | - "django.core.context_processors.media", |
269 | | - "django.core.context_processors.request", |
270 | | - "django.core.context_processors.tz", |
271 | | - "mezzanine.conf.context_processors.settings", |
272 | | - "mezzanine.pages.context_processors.page", |
273 | | -) |
274 | | - |
275 | 286 | # List of middleware classes to use. Order is important; in the request phase, |
276 | 287 | # these middleware classes will be applied in the order given, and in the |
277 | 288 | # response phase the middleware will be applied in reverse order. |
|
0 commit comments