本文主要是记录在【用户登录】一节中出现的问题:
报错位置是在
if g.user is not None and g.user.is_authenticated():
return redirect(url_for('index'))
Stack Overflow上有另外的解决方法,我没试过,不知道行不行