[mod_python] CGI versus *real* mod_python?

Erik Stephens mod_python at 24ksoftware.com
Sun Apr 11 22:53:31 EST 2004

On Sun, 12 Apr 2004, John Mudd wrote:

> On Sat, 2004-04-10 at 20:33, Jorey Bump wrote:
> > John Draper wrote:
> >
> > > Ok - I've done that,  and saved it into cgi-bin/test directory.
> >
> > Don't do that, it's not CGI.
> So this is CGI?  I'm afraid this is what I've been doing too.
>     from mod_python import apache
>     def handler(req):
>         req.write("Hello World!")
>         return apache.OK

No, what you have there will use mod_python.  What Jorey was trying to
get at (I think) was that maybe all of the files in /cgi-bin will be
treated as CGIs since that is a common web server configuration.

Best regards,

More information about the Mod_python mailing list