[mod_python] seeing python code instead of output

Graham Dumpleton graham.dumpleton at gmail.com
Mon Jun 4 17:06:37 EDT 2007


Do you really have 'mod-python' which a hyphen, instead of
'mod_python' with an underscore?

On 05/06/07, David Bear <David.Bear at asu.edu> wrote:
> I've munged my configuration somehow.
>
> I have in my .htaccess file the following:
>
>   AddHandler mod-python .py
>   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?
>
> --
> David Bear
> phone:  602-496-0424
> fax:    602-496-0955
> College of Public Programs/ASU
> University Center Rm 622
> 411 N Central
> Phoenix, AZ 85007-0685
>  "Beware the IP portfolio, everyone will be suspect of trespassing"
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list