1
私は、次のコマンドを使用してgunicornフラスコアプリを実行すると:Gunicorn nginxのエラー処理要求に
gunicorn --bind 127.0.0.1:8000 myapp:app
私はwww.mayapp.com
[ERROR] Error handling request/
Traceback (most recent call last):
File "/me/.virtualenvs/myapp/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 130, in handle
self.handle_request(listener, req, client, addr)
File "/me/.virtualenvs/myapp/lib/python3.5/site-packages/gunicorn/workers/sync.py", line 171, in handle_request
respiter = self.wsgi(environ, resp.start_response)
TypeError: app() takes from 0 to 1 positional arguments but 2 were given
に私のブラウザを設定した後、次のエラーを取得していますが私が使っている問題のルートについては
:
@app.route("/")
def index():
return render_template('myapp/index.html')
任意のアイデア何が間違って行くことだろうか?