some problems with mod_python

Johan valpis at gmail.com
Mon Aug 27 23:59:03 EDT 2007


On Aug 24, 3:39 pm, Bruno Desthuilliers
<bdesth.quelquech... at free.quelquepart.fr> wrote:

> Your problem is with Apache configuration, not with mod_python. The
> AddHandler directive maps <dirpath>/*.py to your handler. So you have to
> call <anythinghere>.py to trigger the desired behaviour. If you want
> *any* url under <dirpath> to be handled by mptest, you need to use
> SetHandler, not AddHandler.

Yes, this is what I missed. Using SetHandler instead solved my
problem. Many thanks to the people on the list that pointed that out
for me. (and will use mod_python mailing list in the future as
suggested)

/johan




More information about the Python-list mailing list