python - Stack Overflow
https://stackoverflow.com/questions/5120976305.07.2018 · I just had this problem. shmee's proposed solution is what worked for me: The load_user () function should not be a part of the User class, but instead its own standalone function. The load_user () function should call User.query.get (user_id), not User.get (user_id) . I think this confusion comes from the fact that Flask-Login's documentation ...
python - Stack Overflow
https://stackoverflow.com/questions/2660639128.10.2014 · From the Flask-login documentation, it specifically says: "To make implementing a user class easier, you can inherit from UserMixin, which provides default implementations for all of these methods. (It’s not required, though." The methods refered will be: is_authenticated (), is_active (), is_anonymous () and get_id (), which by the look of ...