view server.py @ 73:8f0b18026782

Changed around a few things in the tutorial.
author Atul Varma <varmaa@toolness.com>
date Mon, 20 Apr 2009 13:31:32 -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()