[mod_python] how do I eliminate the .py extension in url?

Graham Dumpleton grahamd at dscpl.com.au
Thu Feb 10 17:35:32 EST 2005


Chris Jackson wrote ..
> If you rename my_script.py to index.py, you can just reference your
> handler like this:
> 
> /scripts/my_handler

Except that calling things "index.py" opens up another big can of worms
if using publisher. See:

  http://issues.apache.org/jira/browse/MODPYTHON-9
  http://issues.apache.org/jira/browse/MODPYTHON-10
  http://issues.apache.org/jira/browse/MODPYTHON-11

Although some disagree, mod_python.publisher is broken in a number of
ways and needs a good overhaul.

Soon maybe I will hack together something to give same style of interface
as publisher on top of Vampire just to show how much better things could
be. Alas, probably no time to do so. :-)

Graham


More information about the Mod_python mailing list