From f950e3cd5ed763f71c251894b8ab3e94ff2439fa Mon Sep 17 00:00:00 2001 From: codex_a Date: Sat, 28 Feb 2026 20:44:43 +0000 Subject: [PATCH] fix: use plain StaticFilesStorage in dev settings CompressedManifestStaticFilesStorage requires collectstatic to generate a manifest before it can serve anything. Dev containers never run collectstatic so every static asset 404s. Override to StaticFilesStorage in dev so Django serves files directly from STATICFILES_DIRS and app static directories. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- config/settings/development.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/settings/development.py b/config/settings/development.py index 224df25..c35364e 100644 --- a/config/settings/development.py +++ b/config/settings/development.py @@ -4,6 +4,11 @@ DEBUG = True INTERNAL_IPS = ["127.0.0.1"] +# Use plain static file storage in dev — CompressedManifestStaticFilesStorage +# (set in base.py) requires collectstatic to have been run and will 404 on +# every asset otherwise. +STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage" + try: import debug_toolbar # noqa: F401