diff --git a/cms/envs/common.py b/cms/envs/common.py index 59befe652823..4344d47263f8 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -520,6 +520,7 @@ # List of finder classes that know how to find static files in various locations. # Note: the pipeline finder is included to be able to discover optimized files STATICFILES_FINDERS = [ + 'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'pipeline.finders.PipelineFinder', diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index 64d417be632b..044a997ceac7 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -41,6 +41,7 @@ # Revert to the default set of finders as we don't want the production pipeline STATICFILES_FINDERS = [ + 'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ] diff --git a/lms/envs/common.py b/lms/envs/common.py index f0725f52e5ac..867556c0b358 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1178,6 +1178,7 @@ # List of finder classes that know how to find static files in various locations. # Note: the pipeline finder is included to be able to discover optimized files STATICFILES_FINDERS = [ + 'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'pipeline.finders.PipelineFinder', diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index e8ef6cd0a597..1657155966eb 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -99,6 +99,7 @@ def should_show_debug_toolbar(_): # Revert to the default set of finders as we don't want the production pipeline STATICFILES_FINDERS = [ + 'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ] diff --git a/openedx/core/storage.py b/openedx/core/storage.py index ff1769470758..6607b27c0c0d 100644 --- a/openedx/core/storage.py +++ b/openedx/core/storage.py @@ -4,9 +4,11 @@ from django.contrib.staticfiles.storage import StaticFilesStorage, CachedFilesMixin from pipeline.storage import PipelineMixin, NonPackagingMixin from require.storage import OptimizedFilesMixin +from openedx.core.djangoapps.theming.storage import ComprehensiveThemingAwareMixin class ProductionStorage( + ComprehensiveThemingAwareMixin, OptimizedFilesMixin, PipelineMixin, CachedFilesMixin, @@ -20,6 +22,7 @@ class ProductionStorage( class DevelopmentStorage( + ComprehensiveThemingAwareMixin, NonPackagingMixin, PipelineMixin, StaticFilesStorage