【新人填坑014】django运行网页时报TypeError at/ 'bool' object is not callable
这里只说这个代码操作 is_authenticated 其他如果什么时候遇到,可以尝试。
解决方法: 把括号去掉就好了 至于原因 额....我也还是小白
源代码 if user.is_authenticated(): 修改后代码 if user.is_authenticated:
# 用户已登录 # 用户已登录
。。。。。。。 。。。。。。。