WebApplication



 

No need to struggle with configuring Apache web server if all you need is simple CGI server. Host your own:

 

Your own CGI web server on localhost

 

import CGIHTTPServer

import BaseHTTPServer

class Handler(CGIHTTPServer.CGIHTTPRequestHandler):

    cgi_directories = ["/cgi"]

PORT = 8000

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

print "serving at port", PORT

httpd.serve_forever()

 

Code by effbot:

 

 

 

Introduction - Simple applications

 

 

 

Using templates

 

On Windows

 

Another web server