AttributeError: 'bool' object has no attribute '__call__'
2017-03-27 15:41
495 查看
第八章
错误提示
改成
错误提示
attributeerror bool object has no attribute call
原因:
Flask-Login自0.3.0版本之后,is_authenticated、is_active和is_anonymous由原来的method更改为property,不可再调用。解决方法:
把{% if current_user.is_authenticated() %}
改成
{% if current_user.is_authenticated %}
相关文章推荐
- Flask--AttributeError 'bool' object has no attribute '__call__'
- 【Python错误】AttributeError: 'bool' object has no attribute '__call__'
- AttributeError: 'module' object has no attribute '_base' 可行解决办法
- AttributeError: 'dict' object has no attribute 'iteritems'
- AttributeError: 'module' object has no attribute 'best_partition'
- AttributeError: 'module' object has no attribute 'urlopen'
- 解决问题 AttributeError: 'module' object has no attribute 'face_recognition_model_v1'
- 报错 AttributeError: 'module' object has no attribute 'bool_'
- AttributeError: ‘NoneType’ object has no attribute ‘clone’
- AttributeError: 'WebDriver' object has no attribute
- AttributeError: 'module' object has no attribute 'text_format'
- web.py 启动时候出现AttributeError: 'module' object has no attribute 'inet_pton'错误
- python AttributeError: 'module' object has no attribute 'setdefaultencoding'
- AttributeError: 'list' object has no attribute 'write_pdf'
- AttributeError: 'module' object has no attribute 'LabelMap'
- python 使用 pip 安装 三方库的时候报错 “AttributeError: '_socketobject' object has no attribute...”
- AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'module' object has no attribute 的解决方法
- AttributeError: 'module' object has no attribute 'LabelMap'