peterbe / django-static

Template tags for better serving static files from templates in Django
BSD 2-Clause "Simplified" License
193 stars 28 forks source link

added support for manage.py compress #39

Closed vinodpandey closed 8 years ago

vinodpandey commented 8 years ago

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 and the file names are stored in manifest.json. This json file and related css/javascript files can then be deployed manually to production. The code is copied from django-compressor (https://github.com/django-compressor/django-compressor). Updated license file to reflect the same.

peterbe commented 8 years ago

Why don't you just use django-compressor? Or django-pipeline?

peterbe commented 8 years ago

I don't work on django-static any more. If you want to you use the code you wrote, I suggest you use your own fork. Sorry. But django-pipeline is so much better.

vinodpandey commented 8 years ago

I tried both django-compressor and django-pipeline and didn't like them. Found it weird that we have to define all files in settings.py for pipeline to compress. That was deal breaker. Also django-compressor didn't work well for my requirement. django-static meets most of my requirement and the only part missing for me was to create static compressed files similar to manage.py collectstatic which I would than upload to S3.

Thanks for creating django-static :+1: .