I am following this Tutorial :- https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-three
I am trying to open the Flask Shell to run flask commands as per the tutorial. Its giving error .
05:42 ~/project-dream-team-three (master)$ flask shell Usage: flask shell [OPTIONS] Error: Could not locate Flask application. You did not provide the FLASK_APP environment variable.
I have to setup the following Commands using flask shell :-
$ flask shell >>> from app.models import Employee >>> from app import db >>> admin = Employee(email="email@example.com",username="admin",password="admin2016",is_admin=True) >>> db.session.add(admin) >>> db.session.commit()