diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-16 19:18:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-16 19:20:41 +0100 |
| commit | e1c74bf45803cbde28149fbc80d91dc3b244e7fc (patch) | |
| tree | e8a98acd1616d4b3000e2c661cad1085ae37b360 | |
| parent | 3b09f3555859495ca0d130712d240fb61493739e (diff) | |
[4.2.x] Refs #21080, Refs #34322 -- Added warning to ManifestStaticFilesStorage docs about paths in comments.
Backport of bae053d497ba8a8de7e4f725973924bfb1885fd2 from main.
| -rw-r--r-- | docs/ref/contrib/staticfiles.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index a72e2ae286..7677b04630 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -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. |
