There are several django apps out there that do this. Here is a chart comparing some of them:
http://www.qompr.com/charts/59;django-asset-managers/ Two not mentioned on there are django-compressor and django-css. I wrote django-css, so I guess I'm pretty partial to that over the others. I've never used django-media-bundler, but it supposedly supports sprites, so that might be worth looking into. One thing that irks me about django-media-bundler and django-compress (don't know about the others listed there) is that you have to define your media bundles (CSS, JS, images) in your settings.py. I think it makes more sense to keep those in your templates like so: {% block compress css %} <script src="{{MEDIA_URL}}js/something.js type="text/javascript></ script> <script src="{{MEDIA_URL}}js/somethingElse.js type="text/javascript></ script> {% endblock %} and this is what django-compressor and django-css do. But, whatever floats your boat. django-css: http://github.com/dziegler/django-css django-compressor: http://github.com/mintchaos/django_compressor Good luck! David Ziegler -- http://www.davidziegler.net On Sep 29, 9:20 am, Rodrigo Cea <rodrigo...@gmail.com> wrote: > What is your experience or advice on using a compressor or asset > packager in Django? For JS, CSS and (maybe) image sprites? > > I have a site going into production tomorrow. It is recieving an "E" > grade in YSlow's "make fewer requests", as it has a lot of CSS and JS > files (about 10 of each). It also have a lot of images on each page. I > would like to use a compressor to speed things up a bit. > > The project is a medium sized corporate site, on a single server > (Dynamic, Static and DB) with no CDN. Mostly a brochure site, with > plenty of images, flash and video. > > Thanks, > > Rodrigo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---