Flask: No user_loader has been installed for this LoginManager - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Flask: No user_loader has been installed for this LoginManager (/thread-22934.html) Pages:
1
2
|
Flask: No user_loader has been installed for this LoginManager - Truman - Dec-03-2019 I'm following this tutorial and got this exception: Any idea how to install it? I wasn't able to find solution.
RE: Flask: No user_loader has been installed for this LoginManager - Larz60+ - Dec-04-2019 you need pip install Flask-Login RE: Flask: No user_loader has been installed for this LoginManager - Truman - Dec-04-2019 there must be something else. For example, check this stackoverflow solution ( not working on my end ).
RE: Flask: No user_loader has been installed for this LoginManager - Larz60+ - Dec-04-2019 I took the grinberg mega tutorial (although it's the new one), and had absolutly no problem (on Linux Mint 19.1) with the login process. Have you tried copying his code and attempting to run as delivered? It would also be helpful to let us know which chapter, and portion of that chapter that you are working on. RE: Flask: No user_loader has been installed for this LoginManager - Truman - Dec-04-2019 As the link gives, I'm on chapter 7: Error Handling. But actually, from chapter 6 I had this problem, it's only that in chapter 7 we learn how to turn on debug mode that discloses this error. RE: Flask: No user_loader has been installed for this LoginManager - Larz60+ - Dec-05-2019 So, the error may have been there for a while. Try this, (if you don't have git installed, you will have to install it: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git ) this is seat of the pants, so may need some adjustment, and you're on windows and I on Linux
git checkout v.06
RE: Flask: No user_loader has been installed for this LoginManager - Truman - Dec-05-2019 I get this: if you get error: Please commit your changes or stash them before you switch branches.I have no idea what this means. RE: Flask: No user_loader has been installed for this LoginManager - Larz60+ - Dec-06-2019 are you in the microblog directory? RE: Flask: No user_loader has been installed for this LoginManager - LeanbridgeTech - Dec-06-2019 Use request_loader instead and pull whatever data you need to tell them apart from the request data. http://flask-login.readthedocs.io/en/latest/#custom-login-using-request-loader RE: Flask: No user_loader has been installed for this LoginManager - Truman - Dec-07-2019 (Dec-06-2019, 01:14 AM)Larz60+ Wrote: are you in the microblog directory? I was in new microblog directory. Should I try again from the first step? |