The CGIHTTPServer module

This is a simple HTTP server that can call external scripts through the common gateway interface (CGI).

Example: Using the CGIHTTPServer module
# File:

import CGIHTTPServer
import BaseHTTPServer

class Handler(CGIHTTPServer.CGIHTTPRequestHandler):
    cgi_directories = ["/cgi"]

PORT = 8000

httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)
print "serving at port", PORT

A Django site. rendered by a django application. hosted by webfaction.