Exception: No user_loader has been installed for this LoginManager. Add one with the 'LoginManager.user_loader' decorator.

@login_manager.user_loader
def load_user(user_id):
    return None

放到app的init.py里面,在login_manager.init_app(app)的后面

    原文作者:gogoforit
    原文地址: https://www.jianshu.com/p/2be8b97cb947
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞