Re: [Pythonmac-SIG] Using Python for cgi

2007-05-01 Thread Brian Wichmann
Thanks, David, The position is: On 1 May 2007, at 10:17, David Warde-Farley wrote: Chances are Apache isn't set up to handle a .py as an executable. Make sure you've got lines like AddHandler cgi-script .cgi AddHandler cgi-script .py in /etc/httpd/httpd.conf (you might have the fi

Re: [Pythonmac-SIG] Using Python for cgi

2007-05-01 Thread David Warde-Farley
On 1-May-07, at 5:03 AM, Brian Wichmann wrote: > Dear all, > > I have prototyped a system using MySql and Python which needs to be > adjusted to use the HTML form data via a web server. I am on 10.4. Chances are Apache isn't set up to handle a .py as an executable. Make sure you've got lin

[Pythonmac-SIG] Using Python for cgi

2007-05-01 Thread Brian Wichmann
Dear all, I have prototyped a system using MySql and Python which needs to be adjusted to use the HTML form data via a web server. I am on 10.4. Hence I have put the following: #!/usr/bin/python Useful test program (cgitest.py): #!/usr/bin/python #cgitest.py import os, cgi, sys sys.stde