{ "export": [ "server.json" ], "keywords": [], "children": [ { "Flask简介": { "keywords": [], "children": [ { "安装": { "keywords": [], "children": [ { "创建应用目录": { "keywords": [], "children": [], "node_id": "python-6-56" } }, { "虚拟环境": { "keywords": [], "children": [], "node_id": "python-6-57" } }, { "在Python 3中创建虚拟环境": { "keywords": [], "children": [], "node_id": "python-6-58" } }, { "在Python 2中创建虚拟环境": { "keywords": [], "children": [], "node_id": "python-6-59" } }, { "使用虚拟环境": { "keywords": [], "children": [], "node_id": "python-6-60" } }, { "使用pip安装Python包": { "keywords": [], "children": [], "node_id": "python-6-61" } } ], "node_id": "python-5-467" } }, { "应用的基本结构": { "keywords": [], "children": [ { "初始化": { "keywords": [], "children": [], "node_id": "python-6-62" } }, { "路由和视图函数": { "keywords": [], "children": [], "node_id": "python-6-63" } }, { "一个完整的应用": { "keywords": [], "children": [], "node_id": "python-6-64" } }, { "Web开发服务器": { "keywords": [], "children": [], "node_id": "python-6-65" } }, { "动态路由": { "keywords": [], "children": [], "node_id": "python-6-66" } }, { "调试模式": { "keywords": [], "children": [], "node_id": "python-6-67" } }, { "命令行选项": { "keywords": [], "children": [], "node_id": "python-6-68" } }, { "请求–响应循环": { "keywords": [], "children": [ { "应用和请求上下文": { "keywords": [], "children": [], "node_id": "python-7-15" } }, { "请求分派": { "keywords": [], "children": [], "node_id": "python-7-16" } }, { "请求对象": { "keywords": [], "children": [ { "对象显示": { "keywords": [], "children": [], "node_id": "python-8-0" } }, { "有效创建大量对象": { "keywords": [], "children": [], "node_id": "python-8-1" } }, { "由字符串调用对象": { "keywords": [], "children": [], "node_id": "python-8-2" } } ], "node_id": "python-7-17" } }, { "请求钩子": { "keywords": [], "children": [], "node_id": "python-7-18" } } ], "node_id": "python-6-69" } }, { "Flask扩展": { "keywords": [], "children": [], "node_id": "python-6-70" } } ], "node_id": "python-5-468" } }, { "模板": { "keywords": [], "children": [ { "Jinja2模板引擎": { "keywords": [], "children": [ { "渲染模板": { "keywords": [], "children": [], "node_id": "python-7-19" } }, { "变量": { "keywords": [], "children": [ { "匿名函数捕获变量值": { "keywords": [], "children": [], "node_id": "python-8-3" } }, { "访问闭包中定义的变量": { "keywords": [], "children": [], "node_id": "python-8-4" } } ], "node_id": "python-7-20" } }, { "控制结构": { "keywords": [], "children": [], "node_id": "python-7-21" } } ], "node_id": "python-6-71" } }, { "使用Flask-Bootstrap集成Bootstrap": { "keywords": [], "children": [], "node_id": "python-6-72" } }, { "自定义错误页面": { "keywords": [], "children": [], "node_id": "python-6-73" } }, { "链接": { "keywords": [], "children": [], "node_id": "python-6-74" } }, { "静态文件": { "keywords": [], "children": [], "node_id": "python-6-75" } }, { "使用Flask-Moment本地化日期和时间": { "keywords": [], "children": [], "node_id": "python-6-76" } } ], "node_id": "python-5-469" } }, { "Web表单": { "keywords": [], "children": [ { "配置": { "keywords": [], "children": [], "node_id": "python-6-77" } }, { "表单类": { "keywords": [], "children": [], "node_id": "python-5-1569" } }, { "把表单渲染成HTML": { "keywords": [], "children": [], "node_id": "python-5-1570" } }, { "在视图函数中处理表单": { "keywords": [], "children": [], "node_id": "python-6-80" } }, { "重定向和用户会话": { "keywords": [], "children": [], "node_id": "python-6-81" } }, { "闪现消息": { "keywords": [], "children": [], "node_id": "python-6-82" } } ], "node_id": "python-5-470" } }, { "数据库": { "keywords": [], "children": [ { "SQL数据库": { "keywords": [], "children": [], "node_id": "python-6-83" } }, { "NoSQL数据库": { "keywords": [], "children": [], "node_id": "python-6-84" } }, { "使用SQL还是NoSQL": { "keywords": [], "children": [], "node_id": "python-6-85" } }, { "Python数据库框架": { "keywords": [], "children": [], "node_id": "python-6-86" } }, { "使用Flask-SQLAlchemy管理数据库": { "keywords": [], "children": [], "node_id": "python-6-87" } }, { "定义模型": { "keywords": [], "children": [], "node_id": "python-6-88" } }, { "关系": { "keywords": [], "children": [], "node_id": "python-6-89" } }, { "数据库操作": { "keywords": [], "children": [ { "创建表": { "keywords": [], "children": [], "node_id": "python-7-22" } }, { "插入行": { "keywords": [], "children": [], "node_id": "python-7-23" } }, { "修改行": { "keywords": [], "children": [], "node_id": "python-7-24" } }, { "删除行": { "keywords": [], "children": [], "node_id": "python-7-25" } }, { "查询行": { "keywords": [], "children": [], "node_id": "python-7-26" } } ], "node_id": "python-6-90" } }, { "在视图函数中操作数据库": { "keywords": [], "children": [], "node_id": "python-6-91" } }, { "集成Python shell": { "keywords": [], "children": [], "node_id": "python-6-92" } }, { "使用Flask-Migrate实现数据库迁移": { "keywords": [], "children": [ { "创建迁移仓库": { "keywords": [], "children": [], "node_id": "python-7-27" } }, { "创建迁移脚本": { "keywords": [], "children": [], "node_id": "python-7-28" } }, { "更新数据库": { "keywords": [], "children": [], "node_id": "python-7-29" } }, { "添加几个迁移": { "keywords": [], "children": [], "node_id": "python-7-30" } } ], "node_id": "python-6-93" } } ], "node_id": "python-5-471" } }, { "电子邮件": { "keywords": [], "children": [ { "电子邮件系统组件和协议": { "keywords": [], "children": [], "node_id": "python-6-94" } }, { "发送电子邮件": { "keywords": [], "children": [], "node_id": "python-6-95" } }, { "Python和SMTP": { "keywords": [], "children": [], "node_id": "python-6-96" } }, { "smtplib.SMTP类方法": { "keywords": [], "children": [], "node_id": "python-6-97" } }, { "交互式SMTP示例": { "keywords": [], "children": [], "node_id": "python-6-98" } }, { "SMTP的其他内容": { "keywords": [], "children": [], "node_id": "python-6-99" } }, { "接收电子邮件": { "keywords": [], "children": [], "node_id": "python-6-100" } }, { "POP和IMAP": { "keywords": [], "children": [], "node_id": "python-6-101" } }, { "交互式POP3示例": { "keywords": [], "children": [], "node_id": "python-6-102" } }, { "poplib.POP3类方法": { "keywords": [], "children": [], "node_id": "python-6-103" } }, { "客户端程序SMTP和POP3示例": { "keywords": [], "children": [], "node_id": "python-6-104" } }, { "交互式IMAP4示例": { "keywords": [], "children": [], "node_id": "python-6-105" } }, { "imaplib.IMAP4类中的常用方法": { "keywords": [], "children": [], "node_id": "python-6-106" } } ], "node_id": "python-5-472" } }, { "大型应用的结构": { "keywords": [], "children": [ { "配置选项": { "keywords": [], "children": [], "node_id": "python-6-107" } }, { "应用包": { "keywords": [], "children": [ { "使用应用工厂函数": { "keywords": [], "children": [], "node_id": "python-7-31" } }, { "在蓝本中实现应用功能": { "keywords": [], "children": [], "node_id": "python-7-32" } } ], "node_id": "python-6-108" } }, { "应用脚本": { "keywords": [], "children": [], "node_id": "python-6-109" } }, { "需求文件": { "keywords": [], "children": [], "node_id": "python-6-110" } }, { "单元测试": { "keywords": [], "children": [ { "blog应用的代码审查": { "keywords": [], "children": [], "node_id": "python-7-33" } } ], "node_id": "python-6-111" } }, { "创建数据库": { "keywords": [], "children": [], "node_id": "python-6-112" } }, { "运行应用": { "keywords": [], "children": [], "node_id": "python-6-113" } } ], "node_id": "python-5-473" } } ], "node_id": "python-4-825" } }, { "Flask安装配置": { "keywords": [], "children": [], "node_id": "python-4-826" } }, { "Flask实现HTTP请求与响应": { "keywords": [], "children": [], "node_id": "python-4-827" } }, { "Flask cookie与session": { "keywords": [], "children": [], "node_id": "python-4-828" } }, { "Flask模板": { "keywords": [], "children": [], "node_id": "python-4-829" } }, { "Flask提交表单": { "keywords": [], "children": [], "node_id": "python-4-830" } }, { "Flask数据库操作": { "keywords": [], "children": [], "node_id": "python-4-831" } }, { "Bootstrap-Flask": { "keywords": [], "children": [], "node_id": "python-4-832" } }, { "Flask开发REST Web服务": { "keywords": [], "children": [], "node_id": "python-4-833" } }, { "部署日志与安全": { "keywords": [], "children": [], "node_id": "python-4-834" } }, { "Flask开发案例": { "keywords": [], "children": [], "node_id": "python-4-835" } } ], "node_id": "python-3-139" }