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爲屬性,故去掉括號