mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +00:00
[4.2.x] Refs #21080, Refs #34322 -- Added warning to ManifestStaticFilesStorage docs about paths in comments.
Backport of bae053d497
from main.
This commit is contained in:
parent
3b09f35558
commit
e1c74bf458
@ -330,6 +330,12 @@ argument. For example::
|
||||
manifest_storage = StaticFilesStorage(location=settings.BASE_DIR)
|
||||
super().__init__(*args, manifest_storage=manifest_storage, **kwargs)
|
||||
|
||||
.. admonition:: References in comments
|
||||
|
||||
``ManifestStaticFilesStorage`` doesn't ignore paths in statements that are
|
||||
commented out. This :ticket:`may crash on the nonexistent paths <21080>`.
|
||||
You should check and eventually strip comments.
|
||||
|
||||
.. versionchanged:: 4.1
|
||||
|
||||
Support for finding paths in CSS source map comments was added.
|
||||
|
Loading…
Reference in New Issue
Block a user