def run_server(): http_server = WSGIServer(('', 5000), DebuggedApplication(application)) http_server.serve_forever()