- python3 -m venv myvenv
- source myvenv/bin/activate
- pip3 install -r requirements.txt
-
export FLASK_APP=app
-
flask shell
-
from app import db
-
from models import User
-
db.create_all()
-
User.query.all() // returns []```
- python3 app.py
- pytest -v
- flask run --reload
-
flask shell
-
from models import User
-
User.query.all()[-1].otp