misc: also look for templates in theme variants directory (#18051)
This commit is contained in:
parent
016bfc78e9
commit
683315c0be
|
@ -34,6 +34,8 @@ class TemplateLoader(django.template.loaders.filesystem.Loader):
|
|||
if theme:
|
||||
template_dirs.append(os.path.join(get_publisher().app_dir,
|
||||
'templates', 'variants', theme))
|
||||
template_dirs.append(os.path.join(get_publisher().app_dir,
|
||||
'theme', 'templates', 'variants', theme))
|
||||
template_dirs.append(os.path.join(get_publisher().app_dir, 'theme', 'templates'))
|
||||
template_dirs.append(os.path.join(get_publisher().app_dir, 'templates'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue