Monday, October 1, 2018

Does the "manifest_strict" attribute on "ManifestFilesMixin" work?

Hi all --

   For some reason, I get a "Missing staticfiles manifest entry" even though the file it's complaining about is listed in the manifest. I don't get the error when DEBUG is turned on, and I'm not sure why.
   At any rate, I tried subclassing "ManifestStaticFilesStorage" and setting "manifest_strict" to False as it says in the documentation. I still get a ValueError. The code appears to check that attribute, then call "self.hashed_name(name)" anyway, which checks to see if the file exists and throws an error if it doesn't.
   Is this intended behavior? Does anyone know why I'd be getting a "Missing staticfiles manifest entry" only if DEBUG were turned off?

-- Chris

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/70172aa7-9048-428a-b60d-0c92c99388af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment