#19650: Add command option to ignore error when collecting static files.
-------------------------------------+-------------------------------------
Reporter: zyegfryed | Owner: nobody
Type: New feature | Status: closed
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
Has patch: 0 | Unreviewed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 1 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by zyegfryed):
I understand that "errors should never pass silently", because it comes
with the Zen of Python that we all love and share. However, it also
continues with : "Unless explicitly silenced.". That's what my solution
was aiming to: adding an '''optional''' flag on the command line to
explicitly ignore post-processing errors and leave the processed file
unchanged, when you know what and why you are doing it.
That way, when someone missed the error before going on production, it can
still brings the server back in a running state using that flag option,
thus leaving time to fix the broken library in between.
So the question is: Can/Should we leave a production server on broken
state for one missing image referenced deep inside some CSS ? Can/Should
we provide a way to circumvent it and let the app running nonetheless ?
I hope you'll have a second thought about it.
In the meantime, I totally agree with
[https://code.djangoproject.com/ticket/18986 #18986], which will help a
lot in order to quickly find a missing file. I might try to tackle it.
--
Ticket URL: <https://code.djangoproject.com/ticket/19650#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.