I used the Gordon Tillman setup: 
http://www.gordontillman.info/Development/DjangoDreamhost
here are the dispatch.fcgi and .htaccess files:

// dispatch.fcgi

#!/usr/bin/env python2.4
import sys, os

# Add a custom Python path.
sys.path.insert(0, "/home/USERNAME/projects/django/trunk")
sys.path.insert(0, "/home/USERNAME/projects/flup/trunk")
sys.path.insert(0, "/home/USERNAME/projects")

//.htaccess

# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "mysite.settings"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")


AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(dispatch\.fcgi/.*)$ - [L]
RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]

Here is my directory structure:

home/USERNAME/
   www.mysite.com/
   www.anothersite.com/
   www.yetanothersite.com/
   projects/
      django/
      flup/
      django_templates/
      media/
      mysite/

On Nov 5, 5:56 pm, AndyB <[EMAIL PROTECTED]> wrote:
> http://wiki.dreamhost.com/index.php/Django
>
> Have you got the .htaccess, dispatch.fcgi etc all set up?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to