会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
frange
博客园
首页
新随笔
联系
订阅
管理
2020年6月11日
flask: AttributeError: 'function' object has no attribute 'route'
摘要: @detail.route('/detail') def detail(): return render('detail/index.html') 如上代码:路由装饰器为detail, 函数名也是 detail 。所以会有这个错 解决办法: 函数名与路由装饰器冲突,修改装饰器名或者修改函数名
阅读全文
posted @ 2020-06-11 15:27 frange
阅读(808)
评论(0)
推荐(0)
编辑
公告