We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f59ee73 commit 9c46807Copy full SHA for 9c46807
1 file changed
django_mobile/conf.py
@@ -30,6 +30,12 @@ class defaults(object):
30
FLAVOURS_COOKIE_HTTPONLY = False
31
FLAVOURS_SESSION_KEY = u'flavour'
32
FLAVOURS_TEMPLATE_LOADERS = []
33
+
34
+ DEFAULT_TEMPLATE_LOADERS = []
35
+ for template_engine in django_settings.TEMPLATES:
36
+ DEFAULT_TEMPLATE_LOADERS += template_engine.get(
37
+ 'OPTIONS', {}).get('loaders', [])
38
39
for loader in django_settings.TEMPLATE_LOADERS:
40
if isinstance(loader, (tuple, list)) and loader[0] == CACHE_LOADER_NAME:
41
for cached_loader in loader[1]:
@@ -39,4 +45,5 @@ class defaults(object):
45
FLAVOURS_TEMPLATE_LOADERS.append(loader)
46
FLAVOURS_TEMPLATE_LOADERS = tuple(FLAVOURS_TEMPLATE_LOADERS)
47
48
42
49
settings = SettingsProxy(django_settings, defaults)
0 commit comments