【发布时间】:2020-11-22 17:04:16
【问题描述】:
Usage: flask db init [OPTIONS]
'''
Error: Could not locate a Flask application. You did
not provide the "FLASK_APP" environment variable, and
a "wsgi.py" or "app.py" module was not found in the
current directory
'''
我没有使用单一应用程序方法,我使用烧瓶作为模块(__init.py)并且我尝试过运行
set FLASK_APP = flask_app #("directory which the init.py stays in")
我也试过了
set FlASK_APP = run.py
当我跑步时
flask db init
它仍然给我同样的错误
【问题讨论】: