if g.user is not None and g.user.is_authenticated(): TypeError:
'bool' object is not callable
答:is_authenticated为属性,故去掉括号
- List item
if g.user is not None and g.user.is_authenticated(): TypeError:
'bool' object is not callable
答:is_authenticated为属性,故去掉括号