I have a problem with flask_login module.
i have installed flask_login module successfully. Also from the command prompt i can run this script easily with no error:
The solution is simple. Different versions of the flask run with different codes so just change the code : flask.ext.login to the code: flask_login
It should run smoothly.
Note that this also applies to bootstrap. Actually inorder to find the solution I had the error while importing bootstrap.