I'm using django staticfiles + django-storages and Amazon S3 to host my data. All is working well except that every time I run manage.py collectstatic
the command uploads all files to the server.
It looks like the management command compares timestamps from Storage.modified_time()
which isn't implemented in the S3 storage from django-storages.
How do you guys determine if an S3 file has been modified?
I could store file paths and last modified data in my database. Or is there an easy way to pull the last modified data from Amazon?
Another option: it looks like I can assign arbitrary metadata with python-boto
where I could put the local modified date when I upload the first time.
Anyways, it seems like a common problem so I'd like to ask what solution others have used. Thanks!