#21080: collectstatic post-processing fails for references inside comments -------------------------------------+------------------------------------ Reporter: shreyas@… | Owner: nobody Type: Bug | Status: new Component: contrib.staticfiles | Version: 1.5 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------
Comment (by pabluk): I'm agree with the [[comment:1|comment]] of @marfire, the correct way to do this is with a CSS parser, because there are many cases to be treated (multi-line comments, nested comments, broken comments, etc.) Adding an option to skip failed imports was reported in ticket:19650 and it was marked as a duplicated of ticket:18958. If you really need ignore these errors, you can create a subclass of `CachedFilesMixin` on your own project and add a `try...except` statement to handle these kind of exceptions. -- Ticket URL: <https://code.djangoproject.com/ticket/21080#comment:3> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/075.fd7306db3055028bdaff073ae89d9bea%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.