--
Ticket URL: <https://code.djangoproject.com/ticket/27929>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
I think it's okay, see ticket:24452#comment:17 and subsequent comments for
possibly related discussion.
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:1>
* cc: Ed Morley (added)
Comment:
I agree an option to remove the original files would be great.
Replying to [comment:1 Tim Graham]:
> I think it's okay, see ticket:24452#comment:17 and subsequent comments
for possibly related discussion.
So I think those comments were more about the intermediate files left
behind (eg `foo.<intermediate-hash>.css`) rather than the original files
(eg `foo.css`). For fixing the former there's ticket #28604, which would
likely do the right thing all the time, rather than being opt-in. However
I guess the same `CachedStaticFilesStorage` limitation might apply to the
original files too.
That said, given this feature would be opt-in, and could perhaps be made
to only support `ManifestStaticFilesStorage`, then perhaps this feature
could be added even before #28606 / #28604?
Fwiw, WhiteNoise rolls its own implementation to remove them currently:
https://github.com/evansd/whitenoise/blob/9d3ad51f7f05e5391ec6f2f03211d958a08e374f/whitenoise/storage.py#L32
...though I'm likely going to be revising it slightly to be more like:
https://github.com/moccu/barbeque/blob/dc714b4fa7ce2ad517a0d37474f8a774df46219c/barbeque/staticfiles/storage.py#L16-L17
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:2>
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:3>
Comment (by valleyofblackpanther):
Is this ticket still active?
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:4>
* status: new => closed
* has_patch: 0 => 1
* resolution: => fixed
* stage: Accepted => Ready for checkin
Comment:
[PR]https://github.com/django/django/pull/16625
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:5>
* status: closed => new
* resolution: fixed =>
* needs_tests: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
Thanks for the patch! However a ticket is fixed when the pull request is
committed to main. And the `Ready for checkin` flag should only be set by
a reviewer of the patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:6>
* owner: nobody => Umang Patel
* needs_better_patch: 0 => 1
* status: new => assigned
* needs_docs: 0 => 1
Comment:
[https://github.com/django/django/pull/17328 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27929#comment:7>