collectstatic management command fails with jython
|Reported by:||Josh Smeaton <josh.smeaton@…>||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Ticket 14665 makes use of os.stat_float_times to work around an issue where some static files are collected all of the time. Unfortunately, Jython doesn't yet support the function stat_float_times, so the collectstatic management command fails.
This is a problem with Jython to be sure, and I've logged a ticket with the project here.
I still feel that since staticfiles is now an integral part of django, that a minor work around for this should be included in order to continue support of jython as a platform. I'm including a patch with this ticket, made against the 1.3 branch since that is the version I'm currently using. I've also tested that it works in current trunk, so porting it there should be relatively painless if accepted.