会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
舞月光
博客园
首页
新随笔
联系
管理
2019年12月13日
flask为blueprint增加error_handler
摘要: 对整个app增加errorhandler,只需如下: @app.errorhandler(404) def page_not_found(error): cats = Category.get_all_data_cats() return render_template('portal/404.ht
阅读全文
posted @ 2019-12-13 08:41 万里沙来手一挥
阅读(584)
评论(2)
推荐(0)
编辑
公告