I am attempting to setup django on the hosting that is shared provider. I adopted the instructions on http://helpdesk.bluehost.com/index.php/kb/article/000531 and almost get it working.

The issue I am facing now would be that the visitors are correctly routed throught the fcgi file, however the file itself turns up as plain text within the browser. Basically run ./mysite.fcgi within the ssh spend, I actually do obtain the default django welcome page.

my .htaccess is:

AddHandler fastcgi-script .fcgi

RewriteEngine On

RewriteCond % !-f

RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]

and mysite.fcgi:

#!/usr/bin/python2.6

import sys, os

os.environ['DJANGO_Configurations_MODULE'] = "icm.configurations"

from django.core.servers.fastcgi import runfastcgi

runfastcgi(method="threaded", daemonize="false")

thanks.

Try getting rid of AddHandler, or altering it to:

AddHandler fcgid-script .fcgi