Skip to content

Comment on Django-medusa: Rendering Django sites as static HTML

Comments

"The process that actually generates the output simply uses (or abuses) Django’s internal testclient to request each URL and store the resulting data"

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.

[1] https://github.com/armstrong/armstrong.esi/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.