From ff84930de3acb6f5fda66ef5a254e0fa9c1e7bc7 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Tue, 27 Aug 2024 16:09:43 +0200 Subject: [PATCH] fix(deps): Update django-storage config --- config/settings/prod.py | 3 ++- config/settings/staging.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/settings/prod.py b/config/settings/prod.py index 1fd992357..3d1b9f0ed 100644 --- a/config/settings/prod.py +++ b/config/settings/prod.py @@ -21,7 +21,8 @@ SECURE_SSL_REDIRECT = env.str("SECURE_SSL_REDIRECT", True) MEDIA_URL = f"https://{S3_STORAGE_ENDPOINT_DOMAIN}/" # noqa -DEFAULT_FILE_STORAGE = "lemarche.utils.s3boto.S3BotoStorage" + +STORAGES = {"default": {"BACKEND": "storages.backends.s3.S3Storage"}} # Sentry diff --git a/config/settings/staging.py b/config/settings/staging.py index 6e905d009..2b7d2e9c1 100644 --- a/config/settings/staging.py +++ b/config/settings/staging.py @@ -24,7 +24,8 @@ SECURE_SSL_REDIRECT = env.bool("SECURE_SSL_REDIRECT", True) MEDIA_URL = f"https://{S3_STORAGE_ENDPOINT_DOMAIN}/" # noqa -DEFAULT_FILE_STORAGE = "lemarche.utils.s3boto.S3BotoStorage" + +STORAGES = {"default": {"BACKEND": "storages.backends.s3.S3Storage"}} # Sentry