view pics2/pics_test_server.py @ 55:0fbe37b56e84

update index_app to use _indexroot files
author paulo
date Thu, 22 Aug 2013 23:53:56 -0700
parents
children 0249782e231e
line source
1 import wsgiref.simple_server
2 import SocketServer
4 import pics_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(pics_app.app)
14 httpd.serve_forever()