Skip to content

Commit

Permalink
Merge pull request #2163 from edx/jbau/sass-path-bugfix
Browse files Browse the repository at this point in the history
small bugfixes for theming+sass+templates
  • Loading branch information
jbau committed Jan 14, 2014
2 parents 129c244 + 6560c4f commit 6aeadb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lms/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from django_startup import autostartup
from xmodule.modulestore.django import modulestore

import edxmako

def run():
"""
Expand Down Expand Up @@ -50,6 +50,7 @@ def enable_theme():
# 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')
edxmako.startup.run()

# Namespace the theme's static files to 'themes/<theme_name>' to
# avoid collisions with default edX static files
Expand Down
2 changes: 1 addition & 1 deletion rakelib/assets.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Theming constants
USE_CUSTOM_THEME = ENV_TOKENS['USE_CUSTOM_THEME']
USE_CUSTOM_THEME = ENV_TOKENS.has_key?('FEATURES') && ENV_TOKENS['FEATURES']['USE_CUSTOM_THEME']
if USE_CUSTOM_THEME
THEME_NAME = ENV_TOKENS['THEME_NAME']
THEME_ROOT = File.join(ENV_ROOT, "themes", THEME_NAME)
Expand Down

0 comments on commit 6aeadb8

Please sign in to comment.