[mod_python] Can't get it to interpret

Graham Dumpleton grahamd at dscpl.com.au
Fri Sep 29 21:15:05 EDT 2006

On 28/09/2006, at 10:41 PM, Paul J. Pathiakis wrote:

> Hi,
>  as I discover more about this....
>  there's a .htaccess file in directory which contains this:
>  SetHandler python-program
>  PythonHander mod_python.publisher
>  PythonDebug On
>  PythonHeaderParserHandler nav.web
>  # In a running installation, PythonPath should be set her, adding all 
> the
>  # subdirectories containing Python modules.
>  PythonPath "sys.path+['/usr/local/nav/apache/webroot/.']"
>  Could someone please explain what the above means?  I haven't worked 
> on web and/or mod_python in quite a while.  I could really use the 
> help. 

If the PythonHeaderParserHandler wasn't there, I would say that the
PythonPath directive isn't required as mod_python.publisher doesn't
require it to be set as described.

The question is, what is 'nav.web' and what does the handler in it
do? Most people wouldn't have a need to be defining a handler for
the PythonHeaderParserHandler phase. What it does will dictate
whether or not PythonPath needs to be set as indicated or whether
the comment about what to do derives from a misunderstanding as to
how mod_python works.


More information about the Mod_python mailing list