Commit 12661764 by Matt Drayer

Merge pull request #12128 from edx/mattdrayer/revert-11319

Revert "Remove ThemingAware storage mixins and ComprehensiveThemeFind…
parents 9a362d90 40c5c477
...@@ -520,6 +520,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.ProductionStorage' ...@@ -520,6 +520,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.ProductionStorage'
# List of finder classes that know how to find static files in various locations. # 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 # Note: the pipeline finder is included to be able to discover optimized files
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder',
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder', 'pipeline.finders.PipelineFinder',
......
...@@ -41,6 +41,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage' ...@@ -41,6 +41,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage'
# Revert to the default set of finders as we don't want the production pipeline # Revert to the default set of finders as we don't want the production pipeline
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder',
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
] ]
......
...@@ -1178,6 +1178,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.ProductionStorage' ...@@ -1178,6 +1178,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.ProductionStorage'
# List of finder classes that know how to find static files in various locations. # 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 # Note: the pipeline finder is included to be able to discover optimized files
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder',
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder', 'pipeline.finders.PipelineFinder',
......
...@@ -99,6 +99,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage' ...@@ -99,6 +99,7 @@ STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage'
# Revert to the default set of finders as we don't want the production pipeline # Revert to the default set of finders as we don't want the production pipeline
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder',
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
] ]
......
...@@ -4,9 +4,11 @@ Django storage backends for Open edX. ...@@ -4,9 +4,11 @@ Django storage backends for Open edX.
from django.contrib.staticfiles.storage import StaticFilesStorage, CachedFilesMixin from django.contrib.staticfiles.storage import StaticFilesStorage, CachedFilesMixin
from pipeline.storage import PipelineMixin, NonPackagingMixin from pipeline.storage import PipelineMixin, NonPackagingMixin
from require.storage import OptimizedFilesMixin from require.storage import OptimizedFilesMixin
from openedx.core.djangoapps.theming.storage import ComprehensiveThemingAwareMixin
class ProductionStorage( class ProductionStorage(
ComprehensiveThemingAwareMixin,
OptimizedFilesMixin, OptimizedFilesMixin,
PipelineMixin, PipelineMixin,
CachedFilesMixin, CachedFilesMixin,
...@@ -20,6 +22,7 @@ class ProductionStorage( ...@@ -20,6 +22,7 @@ class ProductionStorage(
class DevelopmentStorage( class DevelopmentStorage(
ComprehensiveThemingAwareMixin,
NonPackagingMixin, NonPackagingMixin,
PipelineMixin, PipelineMixin,
StaticFilesStorage StaticFilesStorage
......
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