[mod_python] seeing python code instead of output

Jim Gallacher jpg at jgassociates.ca
Mon Jun 4 17:05:57 EDT 2007


David Bear wrote:
> I've munged my configuration somehow. 
> 
> I have in my .htaccess file the following:
> 
>   AddHandler mod-python .py

                ...^......

Spot the typo? ;)


>   PythonHandler s2
>   PythonDebug On
> 
> Yet, when I click on s2.py I see the contents of the python script,
> not the output of all my req.write statements.
> 
> I'm sure this is address in the docs somewhere but I'n not getting any
> hits when googling for it.
> 
> any pointers?

AddHandler mod_python .py

Jim



More information about the Mod_python mailing list