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