sách gpt4 ăn đã đi

python - is_authenticated() Lỗi TypeError TypeError: đối tượng 'bool' không thể gọi được

In lại 作者:太空狗 更新时间:2023-10-29 17:22:11 28 4
mua khóa gpt4 giày nike

<分区>

我尝试在 View 中使用 is_authenticated(),但收到错误“TypeError: 'bool' object is not callable”。为什么会出现此错误以及如何解决?

@auth.before_app_request
def before_request():
if current_user.is_authenticated() \
and not current_user.confirmed \
and request.endpoint[:5] != 'auth.' \
and request.endpoint != 'static':
return redirect(url_for('auth.unconfirmed'))

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress