49๐
โ
I wrote a pluggable Django app, based on a djangosnippet, that caches the ETag of the remote file and compares the chached checksum instead of performing a lookup every time. It took me from about 1m30s to around 10s per call to manage.py collectstatic
for a few hundred static files. Check it out here: https://github.com/antonagestam/collectfast
๐คantonagestam
6๐
Set AWS_PRELOAD_METADATA
to True
in your settings so it pre-loads all files on s3 before syncing and only syncs the ones that are not already there (or have changed).
๐คojii
- Log all errors to console or file on Django site
- Accessing form fields as properties in a django view
Source:stackexchange.com