Mercurial > hg > index.fcgi > www > www-1
view index_test_server.py @ 48:50de1845520f
add first draft of index_app.py
author | paulo |
---|---|
date | Tue, 12 Mar 2013 01:43:17 -0700 |
parents | |
children | 0fbe37b56e84 |
line source
1 import wsgiref.simple_server
2 import SocketServer
4 import index_app
7 class ThreadingWSGIServer(SocketServer.ThreadingMixIn, wsgiref.simple_server.WSGIServer):
8 pass
11 if __name__ == "__main__":
12 httpd = ThreadingWSGIServer(('', 8000), wsgiref.simple_server.WSGIRequestHandler)
13 httpd.set_app(index_app.app)
14 httpd.serve_forever()