Dump Django site to static HTML? [closed] Dump Django site to static HTML? [closed] django django

Dump Django site to static HTML? [closed]


StaticGenerator for Django is what you want. It's designed to pull Django views and save them as static HTML files. It's how I publish my site (http://nedbatchelder.com).

UPDATED: the original link is gone, but the package is on PyPI: http://pypi.python.org/pypi/staticgenerator


Wget with the "-m" (mirror) switch is probably what you're looking for. The "cleaner" way of doing this might be to just take all of the content that normally would be passed by the context processor and manually compose it into your templates.

As an aside, that's a real bummer, man. The dynamic nature of Django is a large component of what makes it so great. If you're not going to use an absurd amount of transfer (let's say >10 GB), I could probably host you for free.


My project Cactus allows you to build static sites with django.