flask(1.0.2)問題彙總

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

答:is_authenticated爲屬性,故去掉括號

  1. List item
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章