﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21080	collectstatic post-processing fails for references inside comments	shreyas@…	blighj	"""python manage.py collectstatic"" is attempting to parse references inside css comments and generating errors during post-processing. I am using:
`STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage'`


eg.
The following snippet of code in test.css:

{{{
.gfg-collapse-closed {
  /* background-image : url('arrow_close.gif'); */
}

}}}

produces the following error:
{{{ 

ValueError: The file 'stylesheets/arrow_close.gif' could not be found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage object at 0x1078a3910>.
collectstatic

}}}

Ideally, collectstatic should respect CSS comments and should not attempt to parse/reference files in lines that are commented out.

If the fix is too complex, a simple workaround might be to include a `--ignore-error` flag that would allow the application to continue post-processing even when it sees errors

"	Bug	closed	contrib.staticfiles	dev	Normal	fixed		Joshua Smith Manel Clos Petr Přikryl powderflask Shai Berger Brian Helba	Ready for checkin	1	0	0	0	0	0
