摘要: 转载:https://www.cnblogs.com/ginvip/p/6439679.html 阅读全文
posted @ 2019-06-09 20:25 jum_blog 阅读(232) 评论(0) 推荐(0) 编辑
摘要: # 统一路由蓝牙规划 # file:blueprint_route.py from flask import Blueprint route_test = Blueprint("home",__name__) # 路由只有通过app注册后才生效 """ 统一路由规划的优点: 统一前缀 当网站结构复杂后可维护 """ @route_test.route("/") def home(): ... 阅读全文
posted @ 2019-06-09 17:51 jum_blog 阅读(910) 评论(0) 推荐(0) 编辑
摘要: # 框架环境 安装 Flask_SQLALchemy,mysqlclient from flask import Flask from flask_sqlalchemy import SQLALchemy # 导入数据库模块 app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = 'mysql://root:12345... 阅读全文
posted @ 2019-06-09 16:56 jum_blog 阅读(186) 评论(0) 推荐(0) 编辑

载入天数...载入时分秒...