On Thu, 2007-03-22 at 07:57 +0000, benrawk wrote:
> Hello,
> 
> Recieving a common error, but have trolled the message boards, and
> have not found a solution. My httpd.conf file contains the following
> relevant snippet:
> 
> <Location "/mysite/">
>     SetHandler python-program
>     PythonPath "['/home/benrawk'] + sys.path"
>     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>     PythonHandler django.core.handlers.modpython
>     PythonDebug On
>     Allow from localhost
> </Location>
> 
> The path of my project file with settings.py in it is /home/benrawk/
> mysite.

Is /home/benrawk readable by the user running Apache (typically,
"apache")? Similarly is mysite/ readable by that user?

Does your settings.py file have syntax errors in it? If you start a
python prompt, import sys and add /home/benrawk to the front of
sys.path, can you import mysite.settings without error?

Does mysite/ have an __init__.py file in it? Actually, this is a
redundant question if you passed the previous test, but it might explain
why the import failed if you can't even import it from the command line.

Those are the likely causes of problems: apache can't read the files in
question, or settings.py has syntax errors.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to