annotate pics2/pics_test_server.py @ 53:0482bffd7d7f

update pics2/pics_app.py with browse page
author paulo
date Sat, 01 Jun 2013 20:43:00 -0700
parents
children 0249782e231e
rev   line source
paulo@52 1 import wsgiref.simple_server
paulo@52 2 import SocketServer
paulo@52 3
paulo@52 4 import pics_app
paulo@52 5
paulo@52 6
paulo@52 7 class ThreadingWSGIServer(SocketServer.ThreadingMixIn, wsgiref.simple_server.WSGIServer):
paulo@52 8 pass
paulo@52 9
paulo@52 10
paulo@52 11 if __name__ == "__main__":
paulo@52 12 httpd = ThreadingWSGIServer(('', 8000), wsgiref.simple_server.WSGIRequestHandler)
paulo@52 13 httpd.set_app(pics_app.app)
paulo@52 14 httpd.serve_forever()