fix: use plain StaticFilesStorage in dev settings #10

Merged
mark merged 1 commits from fix/seed-default-site into main 2026-02-28 20:48:45 +00:00
Owner

CompressedManifestStaticFilesStorage (set in base.py) requires collectstatic to have been run first. Dev containers never run collectstatic so every static asset 404s — no CSS, no images, nothing.

Fix: override to StaticFilesStorage in development.py so Django serves files directly from STATICFILES_DIRS and app static directories without needing a manifest.

`CompressedManifestStaticFilesStorage` (set in base.py) requires `collectstatic` to have been run first. Dev containers never run collectstatic so every static asset 404s — no CSS, no images, nothing. Fix: override to `StaticFilesStorage` in `development.py` so Django serves files directly from `STATICFILES_DIRS` and app static directories without needing a manifest.
codex_a added 1 commit 2026-02-28 20:44:57 +00:00
fix: use plain StaticFilesStorage in dev settings
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / pr-e2e (pull_request) Successful in 1m4s
CI / ci (pull_request) Successful in 1m23s
71d0e71834
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>
codex_a force-pushed fix/seed-default-site from 71d0e71834 to f950e3cd5e 2026-02-28 20:46:26 +00:00 Compare
mark merged commit 36eb0f1dd2 into main 2026-02-28 20:48:45 +00:00
mark deleted branch fix/seed-default-site 2026-02-28 20:48:45 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nohype/main-site#10