This is not optimizing django.<p>This is use django-compress to bundle your js and css to have fewer HTTP requests and use HTTP expire headers for longer client-side caching.
This blog article gives a good illustration of why I built InstaCDN. Getting your js/css/image assets combined, minified, gzipped and served from a CDN is tedious and error prone.<p>The article describes how to install some prerequisite minification software and perform series of configuration steps that span python, html, apache/lighttpd. It seems likely that his instructions will provide improved performance, but there's no CDN integration, some configuration details are left up to the reader to puzzle out and the comments already include some "gotchas" from real world configuration interactions.<p>InstaCDN is an alternative approach that does all the right stuff through a trivial REST API.<p>Would love some feedback, and to find out if/how it's breaking any of your complex css/js.<p><a href="http://www.instacdn.com/" rel="nofollow">http://www.instacdn.com/</a>
While I have not used it myself (my projects are either internal or rather write-heavy), I heard a lot of good things about Cache Machine[1] (which is used in Mozilla Addons) and Johnny Cache[2]. Both provides automatic caching and invalidation of Django model.<p><pre><code> [1]: http://github.com/jbalogh/django-cache-machine
[2]: http://packages.python.org/johnny-cache/</code></pre>
While the versioning looks useful, for CSS/javascript compression I'm interested in knowing if most people use a language framework or if they configure the web server to do it.