#21080: collectstatic post-processing fails for references inside comments
-------------------------------------+------------------------------------
Reporter: shreyas@… | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: master
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 powderflask):
Replying to [comment:10 powderflask]:
If you need to resolve this issue in the interim, override
ManifestStaticFilesStorage (or CachedStaticFilesStorage) and re-define the
class patterns property:
{{{
from django.contrib.staticfiles import storage
class
PatchedManifestStaticFilesStorage(storage.ManifestStaticFilesStorage):
"""
Override the replacement patterns to match URL-encoded quotations.
"""
patterns = (
("*.css", (
r"""(url\((?:['"]|%22|%27){0,1}\s*(.*?)(?:['"]|%22|%27){0,1}\))""",
(r"""(@import\s*["']\s*(.*?)["'])""", """@import
url("%s")"""),
)),
)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21080#comment:12>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/075.6e3d266815b1e7cbbcbc6fefe565c44e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.