From 1a896cabaec4efc0341d410b05bc16ca12e2e48c Mon Sep 17 00:00:00 2001 From: Sonny V Date: Sat, 15 Nov 2025 15:58:18 +0100 Subject: [PATCH] fix: add staticfiles_dirs Without staticfiles_dirs, collectstatic would not find the root-level statics static_root will need to be set on the deployment server --- src/ida/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ida/settings.py b/src/ida/settings.py index f961604..3bf9caf 100644 --- a/src/ida/settings.py +++ b/src/ida/settings.py @@ -139,7 +139,8 @@ # https://docs.djangoproject.com/en/5.1/howto/static-files/ STATIC_URL = "static/" -STATIC_ROOT = env.read("DJANGO_STATIC_ROOT", ROOT_DIR / "static", astype=Path) +STATIC_ROOT = env.read("DJANGO_STATIC_ROOT", ROOT_DIR / "staticfiles", astype=Path) # output for collectstatic +STATICFILES_DIRS = [ROOT_DIR / "static"] # Media files (user-uploaded files) # https://docs.djangoproject.com/en/5.1/topics/files/#managing-files