From b758c89e4abe6eae4401f8fff2b86a3048553b2b Mon Sep 17 00:00:00 2001 From: Bertrand Marron Date: Tue, 4 Feb 2014 16:18:04 +0100 Subject: [PATCH] Prepend theme template paths Allow templates override. --- lms/startup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/startup.py b/lms/startup.py index 2021db8e64..f7737f1650 100644 --- a/lms/startup.py +++ b/lms/startup.py @@ -48,8 +48,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/' to