Dockerize Django app with dev/beta/prod env config and uv #6

Merged
westfarn merged 5 commits from feature/4-dockerize-with-env-config into master 2026-07-07 11:23:50 -07:00
Showing only changes of commit d2f2409a53 - Show all commits
+12
View File
@@ -13,8 +13,20 @@ from whitenoise.storage import CompressedManifestStaticFilesStorage
class TolerantManifestStaticFilesStorage(CompressedManifestStaticFilesStorage):
# Don't 500 at runtime when a {% static %} reference isn't in the manifest;
# fall back to the plain name (mirrors non-manifest storage behaviour).
manifest_strict = False
def _stored_name(self, name, hashed_files):
"""Tolerate missing references during collectstatic post-processing."""
try:
return super()._stored_name(name, hashed_files)
except ValueError:
return name
def stored_name(self, name):
"""Tolerate missing manifest entries at request time."""
try:
return super().stored_name(name)
except ValueError:
return name