I've determined that my local web hosting company cannot support Django.
mod_python
, FastCGI, or SCGI. mod_rewrite
. Any one of these prevent me from deploying my site as a Django app at that hosting service.
I realize that my site is basically static. I'm wondering if I can use Django caching to the filesystem, and deploy what's in that cache. Or else use wget
to recursively capture my site running on localhost. Has anyone done this kind of operation? Is it possible, and is it worth the effort?
I realize that I have at least two other options:
edit: Thanks everyone for the suggestions! I've sent an email to my hosting provider to give them a chance to offer me an upgrade. If they can't come through, I'm looking at WebFaction as a provider.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With