Mercurial > web-gnusto
view server.py @ 93:817aa2851339 default tip
Added a very simple index.html.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 23 May 2008 03:50:44 -0700 |
parents | de12cd84cf0a |
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()