[mod_python] Mod_python.publisher behavior - sending .py file tobrowser not processing it in pyton

Graham Dumpleton grahamd at dscpl.com.au
Thu May 4 00:16:43 EDT 2006

Geoff Skerrett wrote ..
> Just getting started with modpython. And i am not sure if I understand
> the
> documentation, specifically section 6.1.2 Publishing algorithm so I hope
> someone can set me straight.
> My setup is on a laptop
> Apache/2.0.54 (Win32) mod_python/3.2.8 Python/2.4.1 Server 
> Using mod_python.publisher with the following setup in my http.conf file;
> <Directory "C:\Program Files\Apache Group\Apache2\htdocs\app/"> 
>     SetHandler mod_python
>     AddHandler mod_python .py
>     AddHandler mod_python .pyw
>     AddHandler mod_python .pyc
>     PythonHandler mod_python.publisher
>     PythonDebug On 
> </Directory> 

Running out the door, so can't explain in detail. But you should not
be setting both SetHandler and AddHandler. Just use SetHandler and
see what happens.


More information about the Mod_python mailing list