烧瓶处理程序启动两次

时间:2020-10-16 19:07:24

标签: python python-3.x flask

启动Flask时,即使没有发出任何请求,我也会收到两次https://neo4j.com/labs/apoc/4.1/graph-querying/expand-subgraph/ 消息。什么是多余的过程以及如何解决这个问题?

handler started

* Serving Flask app "app.py" (lazy loading) * Environment: development * Debug mode: on * Restarting with windowsapi reloader ------------>>> handler started * Debugger is active! * Debugger PIN: 519-729-899 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) ------------>>> handler started

app.py

from flask import Flask from flask import request from frontend.handler import handler app = Flask(__name__) app.register_blueprint(handler) @app.route('/flask_alive') def requestAlive(): return 'Flast is alive'

handler.py

1 个答案:

答案 0 :(得分:0)

我不认为当我使用debug=True时总是会发生这种错误。