Staticfiles overwriting files incorrectly
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I believe there's an issue with the way
collectstatic operates when the collected folder is not empty.
Suppose I've got files like this:
findstatic --first will tell me that the file in
my_first_app will be used. However if I run the following sequence, it gets overwritten with the file from
manage.py collectstatic touch my_second_app/static/base.css manage.py collectstatic
collectstatic seems to pick up the changed timestamp but ignores the fact that file should be overwritten. For the moment we've had to patch our deploy so that it deletes the collected static each time.
It seems to me that this is not expected behaviour. I've not written an automated test case for it as yet but can try to if this is indeed broken.