Being a complete python newbie I have really struggled to get Django up and running with scgi. No I don't want to use mod_python if I can avoid it as apache is handling all trafic for several sites and only one will be using python.
I can get 'manage.py runserver' started no problem, so I would think that the project is properly configured. I am using the django-scgi.py script on Python 2.4 and a patched mod_scgi on Apache 2.2 I added an extra print statement to verify that the server runs with a decent sys.path The server starts fine: # ./django-scgi.py --projects=/opt/django/fc --etclog=/var/log/httpd/django-fc2.log --errorlog=/var/log/httpd/django-error2.log --host=localhost --port=8882 --settings=fcsite.settings running with sys.path ['/opt/django/fc', '/opt/django', '/usr/lib/python2.4/site-packages/setuptools-0.6c1-py2.4.egg', '/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg', '/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0'] 2006-10-14 22:58:09 : WSGIServer starting up But when I try to access the application, I get an exception. I looked at the Django code in conf/__init__, and if I read it correctly the actual exception could be a lot of things besides not specifying settings. Any ideas? 2006-10-14 22:58:13 : GET / 2006-10-14 22:58:13 : Exception caught from handler Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/scgi_base.py", line 216, in run self.processInput() File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/scgi_base.py", line 264, in processInput req.run() File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/scgi_base.py", line 187, in run self._conn.server.error(self) File "/usr/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/scgi_base.py", line 470, in error request.stdout.write('Content-Type: text/html\r\n\r\n' + File "/usr/lib/python2.4/cgitb.py", line 132, in html vars = scanvars(reader, frame, locals) File "/usr/lib/python2.4/cgitb.py", line 83, in scanvars value = getattr(parent, token, __UNDEF__) File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/conf/__init__.py", line 27, in __getattr__ self._import_settings() File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/conf/__init__.py", line 54, in _import_settings self._target = Settings(settings_module) File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/conf/__init__.py", line 82, in __init__ raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) EnvironmentError: Could not import settings 'fcsite.settings' (Is it on sys.path? Does it ha --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---