-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Under what set of circumstances is WHITENOISE_MANIFEST_STRICT evaluated? #577
Comments
Python is strongly typed and "False" is a truthy string. |
Thank you for returning to the issue and commenting with the problem. I hope you didn’t spend too long debugging it! |
Why did you reopen this? An accident? |
No, I wanted to ask you a question regarding the What's the intent behind this flag? |
Same issue, WHITENOISE_MANIFEST_STRICT=False doesn't work with CompressedManifestStaticFilesStorage. Got:
|
Python Version
3.10
Django Version
4.2
Package Version
6.6.0
Description
If I'm missing certain files in one of the directories that is sourced by the
collectstatic
process, the end result is an application image that falls over in the runtime environment with aValueError
that is raised at line 513 in Django'sdjango/contrib/staticfiles/storage.py
:In an attempt to avoid this, I set
WHITENOISE_MANIFEST_STRICT
toFalse
, because I see that, in the relevant Django code, that flag is checked, and, ifTrue
theValueError
that shows up in my stack trace is raised:However, it's only checked if
cache_name
isNone
.The explanation offered in Issue 289 doesn't really jibe with what I'm inferring from the code: there seems to be only one point in both the whitenoise and Django codebases where the
manifest_strict
flag is evaluated in branching logic. Not only that, but I don't see how it's possible that an incomplete (ie. missing a one-to-one mapping of filename to hashed filename)staticfiles.json
manifest would be created if the files that are collected during thecollectstatic
process are all present.In trying to understand why I'm still seeing this
ValueError
in stack traces despite having setWHITENOISE_MANIFEST_STRICT
to false, I've questioned whether or not I've actually configured Whitenoise correctly. Here's my configuration:Any advice or insight would be appreciated.
The text was updated successfully, but these errors were encountered: