#35709: Command collectstatic should relay on checksums instead of modify time
-------------------------------------+-------------------------------------
Reporter: Grzegorz Przybylik | Type:
| Cleanup/optimization
Status: new | Component: Core
| (Management commands)
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
In our project we mostly relay on containerization and packing code
including their static files into containers. During upgrade we call
`manage.py collectstatic` inside that container and our static files are
uploaded to s3 bucket.
Collectstatic command to make sure if file needs replacement checks
creation timestamp on destination storage and local file storage. But
problem is that creation time of static files inside container are set
during image creation. This causes issues in deploying older images,
because of their create timestamps mentioned earlier.
My idea to fix this is to check files checksums (like md5 or sha) and
using them to compare file identity.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35709>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.