[mod_python] index.py as index

richard hitier richard.hitier at idealx.com
Wed Jun 13 14:44:58 EST 2001


* Le  13 Jun >piet at cs.uu.nl< ecrivait:
> You can make a separate handler for the indexes like this:
in the same directory where the publisher is set ?

> 
> DirectoryIndex index.pyx index.html
> ...
> <Directory "...."> 
>   AddHandler python-index .pyx
is "python-index"  known like "python-program" as handler_name ?

>   PythonHandler index 
> </Directory>
> 
> And then put the indexing code in index.pyx
doesn't work for me :(
I get import error with the ligne 
    AddHandler python-program .pyx

of course, index.pyx can't be imported;
see error in attachement

-- 
Richard Hitier                 PGP Key on pgp.mit.edu
richard.hitier at IDEALX.com	   key 0xD1BAD022
-------------- next part --------------

Mod_python error: "PythonHandler index"

Traceback (innermost last):

  File "/usr/lib/python1.5/site-packages/mod_python/apache.py", line 181, in Dispatch
    module = import_module(module_name, _req)

  File "/usr/lib/python1.5/site-packages/mod_python/apache.py", line 335, in import_module
    f, p, d = imp.find_module(parts[i], path)

ImportError: No module named index



More information about the Mod_python mailing list