#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:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by timo):

 * needs_better_patch:   => 0
 * component:  contrib.staticfiles => Documentation
 * needs_tests:   => 0
 * needs_docs:   => 0
 * type:  Uncategorized => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 In the `FileSystemStorage` case, `MEDIA_ROOT` and `STATIC_ROOT` cannot be
 the same, so you aren't likely to run into this issue. I guess django-
 storage works a bit differently. But yes, it's not intended that you
 storage media files and static files in the same location. In fact,
 [https://docs.djangoproject.com/en/dev/ref/settings/#media-url we
 document] "MEDIA_URL and STATIC_URL must have different values." If you'd
 like to write a patch, I'll be happy to review and commit it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22891#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 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.ed7b94bbf6cf38df38f7cc07eff54112%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to