mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
settings: Replace deprecated STATICFILES_STORAGE.
https://docs.djangoproject.com/en/4.2/releases/4.2/#custom-file-storages https://docs.djangoproject.com/en/5.1/releases/5.1/#features-removed-in-5-1 Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
433968cbb6
commit
ec437fb770
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user