Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,696 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,696 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