If you're still having problems after all they've said, check that your webserver isn't running in a chroot. If it is, it may not see /home/mycode, and may have to be relocated inside the chroot.
Hope this helps, Aoife 2008/11/5 Christian Kortenhorst <[EMAIL PROTECTED]>: > So been wrecking my head about installing django with mod_python on a server > that i have limited root access to (by this i mean i have to ask hosting > company to do some stuff and then they might say no). > > So have installed python on my own personal box debian etch, django version > 0.97 and have it up and running when i run my project > python manage.py runserver 192.168.1.4:8080 > > directory structure: > /home/mycode/ > |-- __init__.py > |-- __init__.pyc > |-- coursedb > |-- etc.. > > /home/django/ > |-- __init__.py > |-- __init__.pyc > |-- bin > |-- conf > |-- core > |-- etc.... > > But when i configure apache > > <Location "/coursedb"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE coursedb.settings > PythonDebug On > PythonPath "['/home/mycode'] + sys.path" > </Location> > > and then go to visit on it in lynx it just shows up > > Mod_python error: "PythonHandler django.core.handlers.modpython" > ..... > ImportError: Could not import settings 'coursedb.settings' (Is it on > sys.path? Does it have syntax > errors?): No module named settings > > the django svn install is in /home/django and I put a ln to /usr/local/bin > so could run django-admin anywhere. > > Can anyone help me? > n.b: i can change a lot on my own server but when i move to shared hosting > server it will be a lot harder to configure, so just wanted all the code for > django and my app to be in my home directory and get apache to run it > througt mod python. but i seam to be doing something wrong. > > -- > Christian Kortenhorst > mob: +353-(0)87-6183349 > home: +353-(0)1-4966287 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~---
