Flask Documentation (1.1.x)tell your terminal the application to work with by exporting the FLASK_APP environment variable: $ export FLASK_APP=hello.py $ flask run * Running on http://127.0.0.1:5000/ If you are on Windows, the environment PowerShell: PS C:\path\to\app> $env:FLASK_APP = "hello.py" Alternatively you can use python -m flask: $ export FLASK_APP=hello.py $ python -m flask run * Running on http://127.0.0.1:5000/ This launches a very you can export the FLASK_ENV environment variable and set it to development before running the server: $ export FLASK_ENV=development $ flask run (On Windows you need to use set instead of export.) This0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)tell your terminal the application to work with by exporting the FLASK_APP environment variable: $ export FLASK_APP=hello.py $ flask run * Running on http://127.0.0.1:5000/ If you are on Windows, the environment Alternatively you can use python -m flask: 1.4. Quickstart 7 Flask Documentation (1.1.x), Release 1.1.4 $ export FLASK_APP=hello.py $ python -m flask run * Running on http://127.0.0.1:5000/ This launches a very mode) you can export the FLASK_ENV environment variable and set it to development before running the server: 8 Chapter 1. User’s Guide Flask Documentation (1.1.x), Release 1.1.4 $ export FLASK_ENV=development0 码力 | 291 页 | 1.25 MB | 1 年前3
共 2 条
- 1
相关搜索词













