摘要: from flask import Flask from flask import current_app """ 配置参数设置与读取 """ app = Flask(__name__, static_url_path='/static', static_folder='static', template_folder='templates') # 配置文件使用方式 # 方式一:从文件中配置参... 阅读全文
posted @ 2019-01-31 16:50 20180616 阅读(603) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask from flask import url_for from flask import redirect from werkzeug.routing import BaseConverter """ 路由提取参数与自定义路由转化器进阶 """ app = Flask(__name__, static_url_path='/static', stat... 阅读全文
posted @ 2019-01-31 16:42 20180616 阅读(275) 评论(0) 推荐(0) 编辑