[mod_python] bug/misfeature in publisher/mod_python

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Dec 17 16:30:53 EST 2002


On Tue, 3 Dec 2002, Damjan wrote:

> My setup:
>  apache 2.0.43, mod_python 3.0.1, python 2.2.1
>
> httpd.conf:
> <Directory /home/www/htdocs> # The root of the web server
> ...
>     SetHandler python-program
>     PythonHandler mod_python.publisher | .py
>     PythonDebug On
> </Directory>
> ...
>
> I expect this setup to handle all files ending in ".py" through
> the publisher handler.
>
> I have the script "hello.py" from the mod_python manual in the root of the
> web-server. Trying to get "http://127.1/hello.py/say" mod_python
> throws an exception (traceback atached).
>
> The exception is: "ImportError: No module named py"

But http://127.1/hello/say (without .py) should work.

(I still agree that this is a problem, just wanted to point out that there
is one way to make it work)

Grisha





More information about the Mod_python mailing list