3 ms·
Smart. There's a Django app, jezdez's django-compressor, that will do this for you, including packaging and minifying JS and CSS then generating a file with the
by wahnfrieden 16y ago
Smart. There's a Django app, jezdez's django-compressor, that will do this for you, including packaging and minifying JS and CSS then generating a file with the new hash in its name in the way this article describes.
- hallmark 16y agoLink: http://github.com/jezdez/django_compressor http://github.com/jezdez/django_compressor
- sidmitra 16y agoDoes it support hosting/syncing the static content to a 3rd party service like s3? The problem with most of these asset management apps is i can't use the templatetags, since they save new css files etc. During deployment i usually ship the static media to S3.
- wahnfrieden 16y agoI haven't tried to do that myself, but django-compressor has a management command if you don't want to use template tags, which are really just there for the convenience factor: > The concatenation and compressing process can also be jump started outside of the request/response cycle by using the Django management command manage.py compress.