nixpkgs/pkgs/by-name/fr/froide/django_42_storages.patch
2024-11-25 20:13:15 +01:00

20 lines
579 B
Diff

diff --git a/froide/settings.py b/froide/settings.py
index 428349cb..1e1bd7a8 100644
--- a/froide/settings.py
+++ b/froide/settings.py
@@ -867,9 +867,11 @@ class Production(Base):
ALLOWED_HOSTS = values.TupleValue(("example.com",))
CELERY_TASK_ALWAYS_EAGER = values.BooleanValue(False)
- STATICFILES_STORAGE = (
- "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
- )
+ STORAGES = {
+ 'staticfiles': {
+ 'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage',
+ },
+ }
class SSLSite(object):