摘要: 数据库 torndb安装 连接初始化 执行语句 execute execute_rowcount 查询语句 get query 与Django框架相比,Tornado没有自带ORM,对于数据库需要自己去适配。我们使用MySQL数据库。 在Tornado3.0版本以前提供tornado.databas 阅读全文
posted @ 2018-11-06 22:38 薄荷味日记 阅读(177) 评论(0) 推荐(0) 编辑
摘要: tornado模板 1.配置模板路径 (project/config.py) # coding=utf-8 import os BASE_DIRS = os.path.dirname(__file__) # 参数 options = { “post” : 8000, } # 配置 settings 阅读全文
posted @ 2018-11-06 16:29 薄荷味日记 阅读(144) 评论(0) 推荐(0) 编辑