Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Replace deprecated STATICFILES_STORAGE.

Anders Kaseorgec437fb770a4
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index 407713c3ea7..e66b949b081 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -615,7 +615,7 @@ LOCAL_FILES_DIR = os.path.join(LOCAL_UPLOADS_DIR, "files") if LOCAL_UPLOADS_DIR
# ZulipStorage when not DEBUG.
if not DEBUG:
- STATICFILES_STORAGE = "zerver.lib.storage.ZulipStorage"
+ STORAGES = {"staticfiles": {"BACKEND": "zerver.lib.storage.ZulipStorage"}}
if PRODUCTION:
STATIC_ROOT = "/home/zulip/prod-static"
else: