[4.1.x] Refs #21080, Refs #34322 -- Added warning to ManifestStaticFilesStorage docs about paths in comments.

Backport of bae053d497ba8a8de7e4f725973924bfb1885fd2 from main.
This commit is contained in:
Mariusz Felisiak 2023-02-16 19:18:55 +01:00
parent 7fd69e52a5
commit 60be5909a2

View File

@ -325,6 +325,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.0
Support for finding paths in JavaScript source map comments was added.