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.

Django-medusa: Rendering Django sites as static HTML

45 pointsby mtigasalmost 13 years ago

5 comments

natriusalmost 13 years ago
<i>"The process that actually generates the output simply uses (or abuses) Django’s internal testclient to request each URL and store the resulting data"</i><p>It warms my heart to see another example of test client abuse. We used the test client to implement a pure Python ESI processor[1]. We ran it in production for awhile, but no one should ever do that. Varnish is the answer. The code was still running on our development machines when I left.<p>[1] <a href="https://github.com/armstrong/armstrong.esi/" rel="nofollow">https://github.com/armstrong/armstrong.esi/</a>
ashrayalmost 13 years ago
I just don't see the point to this kind of stuff.. =/<p>For high traffic apps, Varnish is the answer as you don't hit the application layer.<p>If you think that's too complicated, try nginx-memcached - also an excellent solution.<p>If not that, try django's template caching with memcached - also extremely fast but will hit the application layer.<p>If you're in some shared hosting environment (you probably are too small still to warrant this kind of aggressive caching on static assets - but hey, efficiency never hurt anybody :P) without access to memcached, use django's cache backend with a file based cache. It's almost 100% as what this does and you don't have any additional overhead.<p>Beats me why people are re-inventing the wheel - or am I missing something ?
评论 #4183252 未加载
评论 #4183069 未加载
评论 #4182933 未加载
评论 #4182972 未加载
bifrostalmost 13 years ago
Thats kinda neat, I suspect this will be used a lot. I did something similar to this 5-6 years ago with wget but this is a lot more elegant IMHO.
评论 #4182649 未加载
55ptsalmost 13 years ago
Very cool project, thanks for open sourcing it. I was looking for this type of library this week and found medusa and aymcms.<p>Does it handle images? How about multiple sites/subdomains?
评论 #4183661 未加载
megaman821almost 13 years ago
Why all these static site generators? Just use Varnish, it is the static site generator for any and all frameworks.
评论 #4182865 未加载
评论 #4183268 未加载