flask mega-tutorial 1.0 documentation学习记录

本文主要是记录在【用户登录】一节中出现的问题:
报错位置是在

if g.user is not None and g.user.is_authenticated():
return redirect(url_for('index'))

问题的原因主要是因为flask-login模块不对,需要安装flask-login==0.2.11,。

Stack Overflow上有另外的解决方法,我没试过,不知道行不行
原文地址:https://www.cnblogs.com/marsggbo/p/6622897.html