diff --git a/django/projects/mysite/settings_base.py b/django/projects/mysite/settings_base.py index c7d6894b26..4bac98e295 100644 --- a/django/projects/mysite/settings_base.py +++ b/django/projects/mysite/settings_base.py @@ -383,17 +383,24 @@ }, } -# We use django-pipeline to compress and reference JavaScript and CSS files. To -# make Pipeline integrate with staticfiles (and therefore collecstatic calls) -# the STATICFILES_STORAGE variable has to be set to: -STATICFILES_STORAGE = 'pipeline.storage.PipelineManifestStorage' - # Adding PipelineFinder as asset discovery mechanism allows staticfiles to also # discover files that were generated by Pipeline. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) +STORAGES = { + 'default': { + 'BACKEND': 'django.core.files.storage.FileSystemStorage' + }, + 'staticfiles': { + # We use django-pipeline to compress and reference JavaScript and CSS files. To + # make Pipeline integrate with staticfiles (and therefore collecstatic calls) + # the STATICFILES_STORAGE variable has to be set to: + 'BACKEND': 'pipeline.storage.PipelineManifestStorage', + }, +} + PIPELINE = { # Use CSSMin as django-pipeline's CSS compressor 'CSS_COMPRESSOR': 'pipeline.compressors.cssmin.CSSMinCompressor',