#22891: Document that "collectstatic --clear" deletes all files in the storage
directory
--------------------------------------+------------------------------------
Reporter: nina@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by EvilDMP):
* easy: 0 => 1
Comment:
To make it clear, this is the correct behaviour. Django can't tell whether
a particular file is a static file or not just by inspecting it.
Even if it removed only those that matched static files in the various
applications, that would neither guarantee complete removal nor
inadvertent removal, because applications' static files can change with
each version, or there may be static files left behind by an application
that's no longer installed.
The only safe thing to do is to clear the entire directory.
--
Ticket URL: <https://code.djangoproject.com/ticket/22891#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/080.6763d582170974090f553f09155669fc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.