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 trial

Python Build a Social Network with Flask Making Strong Users Cryptographic Hashing with Flask-Bcrypt

Does this course need an update? "flask.ext." libraries are already deprecated.

>>> from flask.ext.bcrypt import generate_password_hash
__main__:1: ExtDeprecationWarning: Importing flask.ext.bcrypt is deprecated, use flask_bcrypt instead.
>>> from flask.ext.login import UserMixin
__main__:1: ExtDeprecationWarning: Importing flask.ext.login is deprecated, use flask_login instead.
Keith Whatling
Keith Whatling
17,759 Points

Probably needs an update, frameworks like Flask are updating all the time. I would say learn to do it the way on the course, then upgrade your code to use the latest version.

It will be a great thing to figure out using the docs etc. It will really help when doing real world projects, and you can let us all know how you got on :)

Its a win win!

Thanks for the feedback Keith!

You're right. It just made me panic at first. Actually, even using the new ones along with how it was done in the course is pretty much the same. Just the changes in the import statements. So I think it's not that big deal anymore.

Aside from this post, maybe I should rate the course as individual so that Treehouse can reflect on these feedback and perform necessary updates (even just in teacher's notes).

Thanks again.

Keith Whatling
Keith Whatling
17,759 Points

Good for you!, let me know when you post it, I'd really like to read it. :)

2 Answers

Ross Coe
Ross Coe
5,061 Points

thanks this helped from flask_bcrypt import generate_password_hash