It doesn’t take much searching to suspect that Django on Dreamhost maby not be an ideal environment, but it does work. Running Django on Dreamhost involves using Fastcgi, which is officially supported by Django, but not a recommended configuration.
I found following the official tutorial sufficient in setting up Django on Dreamhost.
A couple of notes from this install:
- There are a several sites that mention what to do after you make code changes, and have already accessed the site. I have found that “touch ~/mysite/dispatch.fcgi” is sufficient to reload my changes. But several sites mention performing a pkill or pkill -9 python2.5. I can see there are a couple of dispatch.fcgi processes running, but I haven’t seen a need to kill them yet, so I’m sticking with the touch command at this point.
- I had to uncheck Extra Web Security for my Django domain in the dreamhost panel to get it to run correctly. I’ll double check this as I get development going, as it looks like others have Django running with extra web security enabled.
References:
- Jeff Croft’s Tutorial provides another description of essentially the same process. Keep in mind that this is 2 years old however.
- Ryan Kanno provides a cool idea for a development cycle in this environment
Post a Comment