It appears that installation of flask-login has issues. Despite a successful install using the below
pip install flask-login
from flaskext.login import LoginManager
lm = LoginManager()
ImportError: No module named login
There was a transition of the flask extension import way:
Instead we now recommend naming packages
flask_foo
instead of the now deprecatedflaskext.foo
. Flask 0.8 introduces a redirect import system that lets uses import fromflask.ext.foo
and it will tryflask_foo
first and if that failsflaskext.foo
.Flask extensions should urge users to import from
flask.ext.foo
instead of flask_foo or flaskext_foo so that extensions can transition to the new package name without affecting users. (Source)
Use this import way with Flask 0.8 or later:
from flask.ext.login import LoginManager