#31283: "collecstatic --clear" could take ignored patterns into consideration
-------------------------------------+-------------------------------------
Reporter: Mateusz Papiernik | Owner: nobody
Type: New feature | Status: closed
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => wontfix
Comment:
Hi Mateusz.
I suspect this change wouldn't merit the code it would take to implement.
Static root is meant to be a empty folder specifically for Django to put
files into. Like the case in #22891 with the S3 bucket, putting files in
there yourself isn't really supported. And I'm sceptical that it's a wide-
enough use-case to be worth supporting.
Rather I'd point you to subclassing the `collectstatic.Command` and
overriding `clear_dir()`. At that point you can implement whatever logic
you need.
I hope that makes sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/31283#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.3f14ba6f8437efa7cb5fd48f85f73f87%40djangoproject.com.