Flask Documentation (1.1.x)
with some background information about Flask, then focuses on step-by-step instructions for web development with Flask. Foreword What does “micro” mean? Configuration and Conventions Growing with Flask Values Configuring from Files Configuring from Environment Variables Configuration Best Practices Development / Production Instance Folders Signals Subscribing to Signals Creating Signals Sending Signals Extensions Using Extensions Building Extensions Command Line Interface Application Discovery Run the Development Server Open a Shell Environments Debug Mode Environment Variables From dotenv Environment Variables0 码力 | 428 页 | 895.98 KB | 1 年前3Flask Documentation (1.1.x)
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 1.19 Development Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 3.5 Flask Extension Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 3.6 Pocoo Styleguide with some background information about Flask, then focuses on step-by-step instructions for web development with Flask. 1.1 Foreword Read this before you get started with Flask. This hopefully answers0 码力 | 291 页 | 1.25 MB | 1 年前3Flask入门教程
flask run * Serving Flask app "app.py" * Environment: production WARNING: Do not use the development server in a production env ironment. Use a production WSGI server instead. * Debug mode: off 用来设置程序运行的环境,默认为 production 。 在开发时,我们需要开启调试模式(debug mode)。调试模式可以通过将系统环 境变量 FLASK_ENV 设为 development 来开启。调试模式开启后,当程序出 错,浏览器页面上会显示错误信息;代码出现变动后,程序会自动重载。 为了不用每次打开新的终端会话都要设置环境变量,我们安装用来管理系统环境变 量的 python-dotenv: 忽略它。你可以使用编辑器执行这个操作: .env 在新创建的 .flaskenv 文件里,我们写入一行 FLASK_ENV=development ,将环境 变量 FLASK_ENV 的值设为 development ,以便开启调试模式: FLASK_ENV=development 实验时间 在这个小节,我们可以通过做一些实验,来扩展和加深对本节内容的理解。 修改视图函数返回值 首先,你可以自由修改视图函数的返回值,比如:0 码力 | 127 页 | 7.62 MB | 1 年前3Flask-RESTful Documentation Release 0.3.10
Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub [https://github.com/flask-restful/flask-restful]0 码力 | 42 页 | 84.60 KB | 1 年前3Flask-RESTful Documentation Release 0.3.10
with Flask. 1.1 Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub. git clone https://github.com/flask-restful/flask-restful0 码力 | 39 页 | 212.29 KB | 1 年前3Flask-RESTful Documentation Release 0.3.6
with Flask. 1.1 Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub. git clone https://github.com/flask-restful/flask-restful0 码力 | 46 页 | 245.60 KB | 1 年前3Flask-RESTful Documentation Release 0.3.6
Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub [https://github.com/flask-restful/flask-restful]0 码力 | 49 页 | 91.90 KB | 1 年前3Flask-RESTful Documentation Release 0.3.7
with Flask. 1.1 Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub. git clone https://github.com/flask-restful/flask-restful0 码力 | 50 页 | 253.09 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
with Flask. 1.1 Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub. git clone https://github.com/flask-restful/flask-restful0 码力 | 50 页 | 253.64 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
Running the Tests Installation Install Flask-RESTful with pip pip install flask-restful The development version can be downloaded from its page at GitHub [https://github.com/flask-restful/flask-restful]0 码力 | 55 页 | 93.30 KB | 1 年前3
共 11 条
- 1
- 2