Exception Value:‘bool’ object is not callable 错误如下图:
Exception Value:'bool' object is not callable
错误原因:is_authenticated是属性而不是方法,把括号去掉就可以了
if request.user.is_authenticated():修改为if request.user.is_authenticated:解决如图:
Exception Value:'bool' object is not callable

相关文章:

  • 2021-08-04
  • 2022-12-23
  • 2021-06-02
  • 2021-05-06
  • 2022-01-03
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-07-05
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案