This can be observed by running `python manage.py collectstatic` and then
`python manage.py collectstatic --dry-run` where you can see the
staticfiles.json file has been modified and the paths key in the json is
now empty.
It looks like the problem occurs in
[https://github.com/django/django/blob/1.11.24/django/contrib/staticfiles/storage.py#L416
ManifestFilesMixin.post_process] due to not checking the passed in value
of `dry_run` before calling `save_manifest`.
--
Ticket URL: <https://code.djangoproject.com/ticket/30802>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 1.11 => master
* easy: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/30802#comment:1>
* owner: nobody => paul-eclipse
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/30802#comment:2>
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/11824
--
Ticket URL: <https://code.djangoproject.com/ticket/30802#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fa8fe09e4e2b538c5d50a559081861d5c0635d55" fa8fe09e]:
{{{
#!CommitTicketReference repository=""
revision="fa8fe09e4e2b538c5d50a559081861d5c0635d55"
Fixed #30802 -- Prevented manifest creation when running collectstatic in
dry run mode.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30802#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"5d63bf0bc338840cfbb10f3528cc5b5ca3170f9b" 5d63bf0b]:
{{{
#!CommitTicketReference repository=""
revision="5d63bf0bc338840cfbb10f3528cc5b5ca3170f9b"
[3.0.x] Fixed #30802 -- Prevented manifest creation when running
collectstatic in dry run mode.
Backport of fa8fe09e4e2b538c5d50a559081861d5c0635d55 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30802#comment:5>