Beginner question
Graham Dumpleton
Graham.Dumpleton at gmail.com
Mon May 26 00:00:31 EDT 2008
On May 26, 4:13 am, howa <howac... at gmail.com> wrote:
> Hi,
>
> Just want to try mod_python but it is more complicated then I
> expected...
>
> I just followed the tutorial on:http://www.modpython.org/live/mod_python-2.7.8/doc-html/inst-testing....
>
> E.g.
>
> URL =http://www.example.com/mptest.py
>
> It return
>
> ImportError: No module named mptest
>
> 1. If I removed addHandler mod_python .py and PythonHandler mptest, I
> can see the SOURCE CODE
>
> 2. The PythonHandler mod_python.testhandler seems return correct
> result, showing I am using python 2.4.3
>
> any idea?
Why are you using the documentation from version 2.7.8 of mod_python
when you are using a much newer version?
Also read:
http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking
Graham
More information about the Python-list
mailing list