会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小小疯子
导航
首页
新随笔
联系
订阅
管理
公告
2018年9月28日
Flask 响应之定制全局有效的错误页面,之设置cookie,头信息。
摘要: 1. @app.errorhandler(404) def not_found(error): resp = make_response(render_template('error.html'),404) return resp 这种方法更为灵活 2. 设置cookie def func(): r
阅读全文
posted @ 2018-09-28 00:17 小小疯子1
阅读(500)
评论(0)
推荐(0)
编辑