From ec437fb770a4e4aa6aa53a178c111afb4ee5a371 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 22 Oct 2024 20:42:19 -0700 Subject: [PATCH] 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 --- zproject/computed_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index 407713c3ea..e66b949b08 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: