Flask 运行 不是 运行ning 并且给我错误
Flask run isn't running and gives me error
我正在尝试 运行 烧瓶,当我 运行
烧瓶 运行
我收到这个错误
(snoop) ether@ether:~/Documents/loginsystem$ flask run
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Usage: flask run [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.
我完成了
Run command: set FLASK_APP=main.py
Run command: set FLASK_DEBUG=1
Run command: flask run
但这并没有改变错误的任何内容
我将本教程用于登录系统
https://codeshack.io/login-system-python-flask-mysql/
你能尝试导出变量而不是仅仅设置它吗?
export FLASK_APP=main.py
而不是
set FLASK_APP=main.py
我正在尝试 运行 烧瓶,当我 运行 烧瓶 运行
我收到这个错误
(snoop) ether@ether:~/Documents/loginsystem$ flask run
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Usage: flask run [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.
我完成了
Run command: set FLASK_APP=main.py
Run command: set FLASK_DEBUG=1
Run command: flask run
但这并没有改变错误的任何内容
我将本教程用于登录系统 https://codeshack.io/login-system-python-flask-mysql/
你能尝试导出变量而不是仅仅设置它吗?
export FLASK_APP=main.py
而不是
set FLASK_APP=main.py