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

Christian Basile
Christian Basile
2,067 Points

I am unable to run the app due to flask-ext not working. It says flask-ext no module found.

from flask import (Flask, g , render_template, flash, redirect, url_for,abort) from flask.ext.login import (LoginManager, login_user, logout_user, login_required, current_user) from flask.ext.bcrypt import check_password_hash import forms import models

_user, logout_user, login_required, current_user) ModuleNotFoundError: No module named 'flask.ext' (base) Christians-MacBook-Pro:Sflask $ python app.py Traceback (most recent call last): File "app.py", line 2, in <module> from flask.ext.login import (LoginManager, login_user, logout_user, login_required, current_user) ModuleNotFoundError: No module named 'flask.ext'

I am unable to find the answer. Do I need to downgrade flask? Thank you.

2 Answers

I think there was an update in the teacher's notes which said that you need to use 'flask_login' instead of 'flask.ext.login' and 'flask_bcrypt' instead of 'flask.ext.bcrypt'.

Try it out - I hope it works! :-)

Christian Basile
Christian Basile
2,067 Points

Hi Ave, thank you for the help , and I did , and now those issues are no longer happening thank you !!!

I'm so glad it worked and thank you for letting me know! :-)