TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Optimizing Django: tricks for faster page loads

53 pointsby alonswartzabout 15 years ago

5 comments

samueladamabout 15 years ago
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.
评论 #1317588 未加载
anotherpaulgabout 15 years ago
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>
评论 #1318072 未加载
sirnabout 15 years ago
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>
samratjpabout 15 years ago
Could be handy with Google App Engine. Other than that, doesn't seem extraordinarily "optimizing"
poabout 15 years ago
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.