I have successfully installed Django files and created a project, database and edited the model files based on the Django tutorial usign the python interpreter. However, when I try to access the site I have been unsuccesful.
Based on the Django site I have the following mysite.fcgi file, where username is my username.
#!/usr/bin/python
import sys, os
# Add a custom Python path.
sys.path.insert(0, "/home/username/django_src")
sys.path.insert(0, "/home/username/django_projects")
# Switch to the directory of your project. (Optional.)
# os.chdir("/home/username/django_projects/mysite")
# 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")
When I go to http://mydomain.com/dj/mysite.fcgi I get the error msg that there is an Unhandled Exception. When I execute the commands in the python interpreter the output from the runfastcgi command indciates that there are missing parameters for REQUEST_METHOD, SERVER_NAME, SERVER_PORT, SERVER_PROTOCOL.
Any help would be appreciated - Django looks really good and this is quite frustrating (I don't know much about getting this to work in FCGI...)




Sign In
Register
Help


MultiQuote