On Sat, 2006-06-10 at 04:35 -0700, PythonistL wrote:
> Malcom.
> Thank you for help.
> I followed
> http://www.modpython.org/live/current/doc-html/inst-trouble.html
> so i added to my httpd.conf
> 
> <Location /mpinfo>
>       SetHandler mod_python
>       PythonHandler mod_python.testhandler
>     </Location>
> 
> 
> but when I
> point my  browser to the /mpinfo URL
> I will get
> ############
> Mod_python error: "PythonHandler mod_python.testhandler"
> 
> Traceback (most recent call last):
> 
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 287, in HandlerDispatch
> 
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 461, in import_module
> 
> ImportError: No module named testhandler
> ##########

So you are consistently getting ImportErrors for things run by
mod_python (compare this to the Django error you are seeing -- they are
basically the same). I would start checking things like whether the user
running Apache has read permissions for your site-packages directory and
so forth.

If that's not it, I have no idea, but you are now seeing a consistent
problem, so you should focus on trying to get the basic mod_python stuff
working and leave the Django parts out of it. If you can get
mod_python.testhandler to run, I suspect the other part will start to
work as well.

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

Reply via email to