#19021: collectstatic should only copy files if they have changed or don't
exist in
destination
-------------------------------+---------------------------------------
Reporter: dloewenherz | Owner: dloewenherz
Type: New feature | Status: reopened
Component: Uncategorized | Version: 1.4
Severity: Normal | Resolution:
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 dloewenherz):
* status: closed => reopened
* resolution: needsinfo =>
Comment:
Weird, I can't reproduce this (initially I commented saying I might have
overlooked something).
First of all, when working on a team with multiple people, the current
solution doesn't work. Every computer is on its own. Here's a real world
scenario:
1. Person A runs collectstatic. All files are uploaded.
2. Person B makes a change to one file and runs collectstatic. Again, all
files are uploaded.
This is untenable for a team size N > 1.
Secondly, there is a bug in the heuristic used to identify changed files.
I just changed a js file in one of my static folder after running
collectstatic earlier. When I run collectstatic again, nothing is re-
uploaded, even though the file has changed.
if you look at the source, this is because collectstatic only checks if a
file has changed by checking it's path name. The contents of the files
themselves are ignored.
--
Ticket URL: <https://code.djangoproject.com/ticket/19021#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.