[mod_python] PublisherHandler

Gregory (Grisha) Trubetskoy grisha at modpython.org
Thu Oct 2 14:43:20 EST 2003



On Thu, 2 Oct 2003, Nikolay Alexiev wrote:

> I'm using PublisherHandler for my project. This is my  .htaccess file
>
>     AddHandler python-program .py
>     SetHandler python-program

You don't need both AddHandler and SetHandler, SetHandler alone will cover
every type of file.

>     PythonHandler mod_python.publisher
>     PythonDebug On
>
> But now I can't load pictures from this folder and from its subfolder. Can I
> do something or the only way is to move images in a folder that is a level
> above?

You can create a subdirectory and add "SetHandler None" which reverses
previous SetHandler's:

http://httpd.apache.org/docs-2.0/mod/core.html#sethandler

HTH,

Grisha


More information about the Mod_python mailing list