|
Maksim Kasimov
maksim.kasimov at gmail.com
Mon Jan 15 08:06:24 EST 2007
hi,
in apache conf file i use:
<Directory "/mypath/mydir">
SetHandler python-program
PythonHandler mod_python.publisher
</Directory>
there is file:
in file /mypath/mydir/index.py there some functions:
def index(req):
return "index"
def free(req):
return 'free'
def not_found(req):
# some computation
return 'page not found'
and every thing is just fine and works as expected:
for http://myhostname.org/mydir/free i can see "free"
for http://myhostname.org/mydir/ i can see "index"
my question is: How to get output of "not_found" function for any other uri,
such as "http://myhostname.org/mydir/hello" ?
many thanks for any advice.
--
Maksim Kasimov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070115/da3efc52/attachment.html
|