newbie help for mod_python

2005-02-22 Thread Jochen Kaechelin
I run debian sid and apache2 with libapache2-mod-python2.3
and I added these lines


   AddHandler mod_python .py
   PythonDebug On


in a virtualhost container.

and I have the following python-file:

from mod_python import apache
def requesthandler(req):
 req.content_type = "text/plain"
 req.write("HELLO")
 return apache.OK

But the file is not executed - instead a download-dialog
is opened.

Any suggestions?

Thanx.


-- 
Jochen Kaechelin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: newbie help for mod_python

2005-02-23 Thread Jochen Kaechelin
Am Mittwoch, 23. Februar 2005 00:29 schrieb Brian Beck:
> Jochen Kaechelin wrote:
> > I run debian sid and apache2 with libapache2-mod-python2.3
> > and I added these lines
> >
> > 
> >AddHandler mod_python .py
> >PythonDebug On
> > 
> >
> > in a virtualhost container.
>
> Were those the only lines you added? You also should have
> actually loaded the module somewhere by adding something
> resembling:
>
> LoadModule python_module modules/mod_python.so

Thats done by debian during installation:

Module Name: mod_python.c
Content handlers: yes

-- 
Gugsch Du: http://gissmoh.de
-- 
http://mail.python.org/mailman/listinfo/python-list