3.1 What Do I Need?

You will need to download and install Python as described in the Installation guide.

You will need some sort of web server on which to run your application. Apache is the reference web server for the Web Modules and it is available for many platforms including Windows.

If you don't have a web server you can easily write one in Python. The code below is a simple threaded CGI server which will allow you to test the samples. When you run the script the directory in which you run it will become the root directory. You should create a folder called cgi-bin in this directory and this will become the directory where you can run .py files.

#!/usr/bin/env python

"""Simple Python webserver. NOT SUITABLE FOR PRODUCTION USE."""
    
import sys; sys.path.append('../')
import web.util

if __name__ == '__main__':
    print __doc__
    web.util.runWebServer('/cgi-bin')

Once the server is running you should be able to access it at http://localhost:8080/ and run scripts in the cgi-bin directory at http://localhost:8080/cgi-bin/.

You will need to install the Web Modules as described in the Installation guide. Once you have done all that you should be ready to start testing the examples or following the tutorials below.

See About this document... for information on suggesting changes.