📌  相关文章
📜  TypeError:'bool' 对象不可调用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:26.040000             🧑  作者: Mango

代码示例1
TypeError: 'bool' object is not callable 

"object is not callable" error occurs when you are trying to behave an object like it is a method or function.

current_user.is_authenticated()

you are behaveing current_user.is_authenticated as a method but its not a method .

you have to use it in this way :

current_user.is_authenticated