diff --git a/src/checkout/settings.py b/src/checkout/settings.py index 5587033..24ebf94 100644 --- a/src/checkout/settings.py +++ b/src/checkout/settings.py @@ -196,11 +196,19 @@ USE_TZ = True STATIC_URL = "static/" STATIC_ROOT = env("STATIC_ROOT") -STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" MEDIA_URL = "media/" MEDIA_ROOT = BASE_DIR.parent / "media" +STORAGES = { + "default": { + "BACKEND": "django.core.files.storage.FileSystemStorage", + }, + "staticfiles": { + "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage", + }, +} + AUTH_USER_MODEL = "common.User" LOGIN_URL = "admin:login" diff --git a/src/conftest.py b/src/conftest.py index 31fa025..a26eb47 100644 --- a/src/conftest.py +++ b/src/conftest.py @@ -9,7 +9,14 @@ 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