欢迎来到天天文库
浏览记录
ID:33384525
大小:1.05 MB
页数:219页
时间:2019-02-25
《Python web框架.Flask中文手册》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、FlaskDocumentationRelease0.7.2September06,2011CONTENTSI用户指南11前言31.1``micro''是什么意思?...............................31.2一个框架和一个例子...............................41.3Web开发是危险的.................................41.4Python3的状态..................................42安装52.1virtualenv..........................
2、............52.2安装到系统全局..................................62.3生活在边缘.....................................62.4Windows平台下的easy_install........................73快速上手93.1一个最小的应用..................................93.2调试模式......................................103.3路由.....................................
3、....113.4静态文件......................................143.5模板渲染......................................153.6访问Request数据.................................163.7跳转和错误.....................................183.8会话.........................................193.9消息闪烁......................................203.10
4、日志记录......................................203.11WSGI中间件集成.................................214教程234.1介绍Flaskr.....................................234.2初始准备:创建目录................................244.3第一步:数据库模式................................254.4第二步:应用程序构建代码............................254.5第三步:创建一个
5、数据库............................264.6第四步:请求数据库连接............................274.7第五步:视图函数.................................284.8第六步:模版....................................304.9第七步:添加样式.................................31i4.10附加:自动测试...................................325模版335.1Jinja安装...............
6、.......................335.2标准上下文.....................................335.3标准过滤器.....................................345.4控制自动转义...................................345.5引入过滤器.....................................355.6上下文处理器...................................356测试Flask应用程序376.1要先有应用程序.............
7、.....................376.2测试骨架......................................376.3处女测........................................386.4日志的输入输出..................................396.5测试添加功能...................................406.6其他测试技巧...........
此文档下载收益归作者所有