TypeError: 'bool' object is not callable g.user.is_authenticated()

此问题查了stackoverflow后知道is_authenticated是一个属性而不是一个方法所以g.user.is_authenticated() 用法会报错

posted @ 2016-02-02 21:46  魔术师的礼帽  阅读(864)  评论(0编辑  收藏  举报