eedok
09-18-2007, 01:03 AM
I'm having troubles with running django, when I run my fcgi file ./mysite.fcgi it dumps the proper headers and html to the shell giving the impression that it should work if I access it through a browser, but when I try to access it through a browser it just hangs.
here's the code for mysite.fcgi
#!/home/geekswho/python/bin/python2.5
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/geekswho/python")
# Switch to the directory of your project. (Optional.)
os.chdir("/home/geekswho/public_html/gws2")
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
and my .htaccess
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]
Any idea on what the problem could be?
here's the code for mysite.fcgi
#!/home/geekswho/python/bin/python2.5
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/geekswho/python")
# Switch to the directory of your project. (Optional.)
os.chdir("/home/geekswho/public_html/gws2")
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
and my .htaccess
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]
Any idea on what the problem could be?
