#23724: Overwrite mode in django
-------------------------------------+--------------------
     Reporter:  prathik              |      Owner:  nobody
         Type:  New feature          |     Status:  new
    Component:  contrib.staticfiles  |    Version:  1.7
     Severity:  Normal               |   Keywords:
 Triage Stage:  Unreviewed           |  Has patch:  1
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+--------------------
 We had an issue in the production server where the files in STATIC_ROOT
 were not being replaced by the ones in the individual apps. As a solution
 for this we ran collectstatic with the -c option. This worked but what
 happened was the the entire static root was erased, this static root was
 configured to point to the static files folder in the container app which
 resulted in some of the files being permanently deleted because
 collectstatic first clears the folder then collects the staticfiles. While
 it is true that it was incorrect to set it up this way, it would be ideal
 if it wouldn't have deleted the files.

 Another problem was that due to some reason the source files had a
 timestamp lesser than the destination files, this could have been due to a
 caching mechanism but this resulted in the source files not being
 collected.

 To solve for the above issues we need a overwrite method which would
 overwrite the source files no matter what the timestamp and it would not
 perform the copy if the source and the destination are the same.

--
Ticket URL: <https://code.djangoproject.com/ticket/23724>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.d975e0cb78c1ce18b90cb210cace44f8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to