paulo@52: import wsgiref.simple_server paulo@52: import SocketServer paulo@52: paulo@52: import pics_app paulo@52: paulo@52: paulo@52: class ThreadingWSGIServer(SocketServer.ThreadingMixIn, wsgiref.simple_server.WSGIServer): paulo@52: pass paulo@52: paulo@52: paulo@52: if __name__ == "__main__": paulo@52: httpd = ThreadingWSGIServer(('', 8000), wsgiref.simple_server.WSGIRequestHandler) paulo@52: httpd.set_app(pics_app.app) paulo@52: httpd.serve_forever()