Skip to content

Django on Dreamhost

by Jeff

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:

  1. 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.
  2. 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:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*