On Fri, Nov 7, 2008 at 5:28 PM, matthew <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm sure this is a properly neophyte post, but I'm stumped and would
> really appreciate some guidance. I am trying to serve a site under
> apache2 using django. I have apache2 and mod_python installed (setup
> below). I have followed the instructions at
>
> http://docs.djangoproject.com/en/dev/howto/deployment/modpython/?from=olddocs
> about configuring apache. My apache2.conf contains:
>
> <Location "/WORD">
>    SetHandler python-program
>    PythonHandler django.core.handlers.modpython
>    SetEnv DJANGO_SETTINGS_MODULE WORD.settings
>    PythonDebug On
>    PythonPath "['/home/matthew/current/django','/home/matthew/current/
> django/WORD'] + sys.path"
> </Location>
>
> When I navigate to localhost/WORD/publications (where my app is) I
> see:
>
> [START ERROR]
> Mod_python error: "PythonHandler django.core.handlers.modpython"
>
> Traceback (most recent call last):
>
> [snip]



> ... I'm sure that I'm missing
> something blindingly obvious, but if someone could please point it out
> to me I'd be really grateful.
>

Does the user Apache is running as have read access to the directory with
your code?


>
> I am using:
> Debian Stable (Etch)
> Python 2.4.4-2
> Django 0.95.1-1etch2
> Apache2  2.2.3-4+etch6
> mod_python  3.2.10-4
>

BTW unless you are using pre-existing code written for the 0.95 level of
Django I would not recommend that level.  Django 1.0 would be a much better
place to start from.

Karen

--~--~---------~--~----~------------~-------~--~----~
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