Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChai Chong Teh
25,709 PointsJust an update reminder on UserMixin importing, not a question
The UserMixin has no longer been included as ext libraries, hence 'from flask.ext.login import UserMixin' should be changed to 'from flask_login import UserMixin' for newer versions.
Note that I am using Python 3.7.2 version under Windows.
Ludovic Dumas
12,245 PointsThank you very much!
Holt Johnson
2,996 PointsThanks for the update Chai Chong Teh! You saved me from digging to find the change myself!
Brian Ko
10,174 PointsThank you!
1 Answer
Neslihan Kara
11,259 PointsHi guys, just a reminder to this helpful comment: if you still have issues even though you did 'from flask_login import UserMixin', try this on terminal:
pip install flask-login
David McGarvey
Full Stack JavaScript Techdegree Graduate 27,424 PointsDavid McGarvey
Full Stack JavaScript Techdegree Graduate 27,424 PointsNice! Thanks!