0

使用Klein作为服务器并希望通过Gunicorn运行它。

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.

4

0 回答 0