view server.py @ 78:17ce8b6be452

Added a 'now you try' section and a 'where to go from here' section to the tutorial.
author Atul Varma <varmaa@toolness.com>
date Mon, 20 Apr 2009 14:30:27 -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()