from klein import Klein
app = Klein()
@app.route('/')
def hello(request):
return "Hello, world!"
resource = app.resource
工作良好twistd -n web --class=twistdPlugin.resource
但需要添加线程,怎么做?
或者如何从 Gunicorn 开始,现在它还给我Application object must be callable.