diff --git a/src/charasheet/settings.py b/src/charasheet/settings.py index ec98c00..50a918e 100644 --- a/src/charasheet/settings.py +++ b/src/charasheet/settings.py @@ -168,7 +168,12 @@ APP_DATA = env("APP_DATA") STATIC_URL = "/static/" STATIC_ROOT = env("STATIC_ROOT") -STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" +STORAGES = { + "default": {"BACKEND": "django.core.files.storage.FileSystemStorage"}, + "staticfiles": { + "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", + }, +} # Medias MEDIA_URL = "/media/" diff --git a/src/conftest.py b/src/conftest.py index 32c35ca..eb0a6b3 100644 --- a/src/conftest.py +++ b/src/conftest.py @@ -10,7 +10,12 @@ def _collectstatic(): @pytest.fixture() def live_server(settings, live_server): - settings.STATICFILES_STORAGE = "whitenoise.storage.CompressedStaticFilesStorage" + settings.STORAGES = { + "default": {"BACKEND": "django.core.files.storage.FileSystemStorage"}, + "staticfiles": { + "BACKEND": "whitenoise.storage.CompressedStaticFilesStorage", + }, + } return live_server