modify template_loaders before we actually set them
This commit is contained in:
parent
6e952a2928
commit
24a62bc36a
1 changed files with 4 additions and 4 deletions
|
@ -263,6 +263,10 @@ template_loaders = (
|
||||||
'django.template.loaders.filesystem.Loader',
|
'django.template.loaders.filesystem.Loader',
|
||||||
'django.template.loaders.app_directories.Loader',
|
'django.template.loaders.app_directories.Loader',
|
||||||
)
|
)
|
||||||
|
if not DEBUG:
|
||||||
|
template_loaders = (
|
||||||
|
('django.template.loaders.cached.Loader', template_loaders),
|
||||||
|
)
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
|
@ -281,10 +285,6 @@ TEMPLATES = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
if not DEBUG:
|
|
||||||
template_loaders = (
|
|
||||||
('django.template.loaders.cached.Loader', template_loaders),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
STATICFILES_FINDERS = (
|
STATICFILES_FINDERS = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue