view server.py @ 70:36e47760ee5b

Added a work-in-progress tutorial that auto-generates parts of itself.
author Atul Varma <varmaa@toolness.com>
date Mon, 20 Apr 2009 13:13:33 -0700
parents 6e8585c006bc
children
line wrap: on
line source

import CGIHTTPServer
import BaseHTTPServer

PORT = 8000

Handler = CGIHTTPServer.CGIHTTPRequestHandler

httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)

print "Serving files at http://localhost:%d" % PORT

httpd.serve_forever()