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3TWjMc48xENaFF+bt+trrO3APkeYQnWIchezGrCeQCuJBak7CHPL6pWl7b9Ch7RIy2VN2lY+kY19iAHND2JSim49yTsljDNo60HYromcd0LYiFIvtBMKJfu4n/nYNBPLvDFGgRrKs0KFEDUuhPwSd9tyTjBT7alCQcTzmRUaP7Chm9UWflUr2qfdg0Mi9hwOVPvGqLP5EgFyoXJ5ZEpm3cQ3aP6cRsUQ0et6Fd0+2uERA0adXk0aKdH+WlY64kuUpV5QRZakKMN7dpzQ1V8bqiLQERBdDGnLWlDVNjXCgUhrJOxN0REJGRemik0Z8Ex+jbURCWRT4gMq9QI88DKBAwlJu9rqb+yt9gTJNsN0XNcFWpjY6I1yHK4aide9LiLdza9XVOQt16GP9P0ec6LMxqptr3swjGCnV0uGqNyl2wmcNgsthM+tlkGX7KsU7fdMPY6Y0pEnufbk6RRxdg2DBvekcSDkzpyL7GoCtP3yN+ZRZSuLLsYZOzMExiP/k/mYJP3gBeIufB+75iCswJdRSKUXFE/RWfx+jmW96kVlq1i3kH3OOsLcalfIV4xYlAawtRSXLHd7k37BBPHIidGSHd+sihAPLTPzC+Twl1zYvLpPucqLBaJEgIkppxZ1IQKQjlEuaRNe5GPKPyZpLw1/b/x80CagUXbBDFcXDOcpm4Xn7dkx5FZQi72dVTOVkMwBb1n+iN9D7UPoz1/OCmGKztcFhWSVNV56/txloVhSBYNz2wIQ9edS6T0uRQal1i/V4OPq7K9/v8C3RHPa5qqJViwPb8sQXIEQVGWkXcJBYcc+2pbkTcQTOJfp4V/9I/+0Z9I/wNIu9bSXaPi9gAAAABJRU5ErkJggg==)
Flask 是一个使用 Python 编写的轻量级 Web 应用框架。其 WSGI 工具箱采用 Werkzeug ,模板引擎则使用 Jinja2。
Flask 也被称为 “microframework” ,因为它使用简单的核心,用 extension 增加其他功能。Flask没有默认使用的数据库、窗体验证工具。然而,Flask保留了扩增的弹性,可以用Flask-extension加入这些功能:ORM、窗体验证工具、文件上传、各种开放式身份验证技术。
本文档分成几个部分,推荐您先读《安装》,然后读《快速上手》。《教程》 比快速上手文档更详细一点,该文档介绍了如何创建一个完整(尽管很小)的 Flask 应用。如果你想深入研究 Flask ,那么需要阅读 《API》。《Flask 方案》中介绍了一些常用的解决方案。
Flask 依赖两个外部库: Jinja2 模板引擎和 Werkzeug WSGI 套件。这两个库的 使用不在本文档的范围内,欲知详情请移步:
- Jinja2 文档
- Werkzeug 文档
适用人群
本课程适用于希望通过 Flask 框架开发 Web 应用的开发人员。
学习前提
我们假定你在学习本课程之前对 Python 语言非常熟悉并掌握基本的 Web 开发知识。
版本信息
书中演示代码基于以下版本:
语言/框架 | 版本信息 |
---|---|
Python | 支持Python2.6 以上版本 |
原文地址: http://dormousehole.readthedocs.org/en/latest/
原文译者: dormouse young [email protected]
本课程中文内容遵从 CC BY-NC-SA 3.0 CN 协议
- 前言
- 针对高级程序员的前言
- 安装
- 快速上手
- 教程
- 模板
- 测试 Flask 应用
- 掌握应用错误
- 排除应用错误
- 配置管理
- 信号
- 可插拔视图
- 应用环境
- 请求环境
- 使用蓝图的模块化应用
- Flask 扩展
- 在 Shell 中使用 Flask
- Flask 方案
- 部署方式
- 大型应用
© Copyright 2013, Armin Ronacher. Created using Sphinx.