Flask Documentation (1.1.x)corresponding environment: $ . venv/bin/activate On Windows: > venv\Scripts\activate Your shell prompt will change to show the name of the activated environment. Install Flask Within the activated environment you are on Windows, the environment variable syntax depends on command line interpreter. On Command Prompt: C:\path\to\app>set FLASK_APP=hello.py And on PowerShell: PS C:\path\to\app> $env:FLASK_APP = don’t keep that in mind, some people might be able to trick your application’s users with social engineering to do stupid things without them knowing. Say you have a specific URL that, when you sent POST0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)corresponding environment: $ . venv/bin/activate On Windows: > venv\Scripts\activate Your shell prompt will change to show the name of the activated environment. 1.3.4 Install Flask Within the activated you are on Windows, the environment variable syntax depends on command line interpreter. On Command Prompt: C:\path\to\app>set FLASK_APP=hello.py And on PowerShell: PS C:\path\to\app> $env:FLASK_APP = don’t keep that in mind, some people might be able to trick your application’s users with social engineering to do stupid things without them knowing. 3.3. Security Considerations 239 Flask Documentation0 码力 | 291 页 | 1.25 MB | 1 年前3
Flask入门教程command() @click.option('--username', prompt=True, help='The username used to login.') @click.option('--password', prompt=True, hide_input=True, confir mation_prompt=True, help='The password used to login Username: greyli Password: 123 # hide_input=True 会让密码输入隐藏 Repeat for confirmation: 123 # confirmation_prompt=True 会要求二 次确认输入 Updating user... Done. 第 8 章:用户认证 75 使用 Flask-Login 实现用户认证 扩展 Flask-Login0 码力 | 127 页 | 7.62 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.10reloader Warning Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing0 码力 | 42 页 | 84.60 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.10reloader Warning: Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful0 码力 | 39 页 | 212.29 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.6reloader Warning: Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful0 码力 | 46 页 | 245.60 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.6reloader Warning Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing0 码力 | 49 页 | 91.90 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.7reloader Warning: Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful0 码力 | 50 页 | 253.09 KB | 1 年前3
Flask-RESTful Documentation
Release 0.3.8reloader Warning: Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} 1.2.2 Resourceful0 码力 | 50 页 | 253.64 KB | 1 年前3
Flask-RESTful Documentation Release 0.3.8reloader Warning Debug mode should never be used in a production environment! Now open up a new prompt to test out your API using curl $ curl http://127.0.0.1:5000/ {"hello": "world"} Resourceful Routing0 码力 | 55 页 | 93.30 KB | 1 年前3
共 11 条
- 1
- 2













