Web Programming with Python

Running Python CGI Scripts

The first step in web programming with Python is to verify that you can run CGI scripts on your web server. You can do this using a simple Python web script, hello.py.

CGI scripts can deliver information other than text pages. The following script shows a simple example.

Passing Information to a CGI Program

Connecting to a MySQL Database

Sending EMail from Python

Example Python CGI Scripts

Maintained by John Loomis, last updated 10 March 2008