1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +00:00

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

This commit is contained in:
Mariusz Felisiak 2023-02-16 19:18:55 +01:00 committed by GitHub
parent 85366fbca7
commit bae053d497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.2
Support for finding paths to JavaScript modules in ``import`` and