Commit a93ef64a by David Baumgold

Merge pull request #2454 from ionis-education-group/theme-template-paths

Prepend theme template paths
parents 6c5ad2b7 b758c89e
......@@ -42,8 +42,8 @@ def enable_theme():
theme_root = settings.ENV_ROOT / "themes" / settings.THEME_NAME
# Include the theme's templates in the template search paths
settings.TEMPLATE_DIRS.append(theme_root / 'templates')
settings.MAKO_TEMPLATES['main'].append(theme_root / 'templates')
settings.TEMPLATE_DIRS.insert(0, theme_root / 'templates')
settings.MAKO_TEMPLATES['main'].insert(0, theme_root / 'templates')
edxmako.startup.run()
# Namespace the theme's static files to 'themes/<theme_name>' to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment