Hi
My code looks like this...see below. fails on last line. i.e. runfastcgi(method="threaded", daemonize="false")
Python Code is run from this path /home1/harveywe/www/dj/testProject/mySite.fcgi
environments
PYTHONPATH=/home1/harveywe/.local/lib/python2.6/site-packages:/home1/harveywe/
PATH=/home1/harveywe/.local/bin:/home1/harveywe/.local/usr/bin:/usr/local/jdk/ bin:/home1/harveywe/perl5/bin:/usr/lib64/qt-3.3/bin:/home1/harveywe/perl5/bin: /ramdisk/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr
Does any of this help?
Harevy
########################### MY CODE ##############################
#!/usr/bin/python2.6
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home1/harveywe/.local/lib/python2.6")
sys.path.insert(13, "/home1/harveywe/django_projects/myFirstProject")
sys.path.insert(0, "/home1/harveywe/.local/lib/python2.6/flup-1.0.2")
# Switch to the directory of your project. (Optional.)
# os.chdir("/home/DJANGONOOB/django_projects/myFirstProject")
#from django.conf import settings
#settings.DEBUG = True
# 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")
#################### MY CODE END #######################################