Revert "Revert "saleem-latif/WL-328: Multi-Site Comprehensive Theming""
2. Update COMPREHNSIVE_THEME_DIR to COMPREHENSIVE_THEME_DIRS 3. Update paver commands to support multi theme dirs 4. Updating template loaders 5. Add ENABLE_COMPREHENSIVE_THEMING flag to enable or disable theming via settings 6. Update tests 7. Add backward compatibility for COMPREHEHNSIVE_THEME_DIR
This commit is contained in:
committed by
Saleem Latif
parent
d328328ff4
commit
68312bdd2d
@@ -18,7 +18,8 @@ from openedx.core.lib.xblock_utils import xblock_local_resource_url
|
||||
import xmodule.x_module
|
||||
import cms.lib.xblock.runtime
|
||||
|
||||
from openedx.core.djangoapps.theming.core import enable_comprehensive_theme
|
||||
from openedx.core.djangoapps.theming.core import enable_theming
|
||||
from openedx.core.djangoapps.theming.helpers import is_comprehensive_theming_enabled
|
||||
|
||||
|
||||
def run():
|
||||
@@ -30,8 +31,8 @@ def run():
|
||||
|
||||
# Comprehensive theming needs to be set up before django startup,
|
||||
# because modifying django template paths after startup has no effect.
|
||||
if settings.COMPREHENSIVE_THEME_DIR:
|
||||
enable_comprehensive_theme(settings.COMPREHENSIVE_THEME_DIR)
|
||||
if is_comprehensive_theming_enabled():
|
||||
enable_theming()
|
||||
|
||||
django.setup()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user