Open a shell and run the following command
python -m venv venv
This will create a virtual environment called 'venv' in your project directory
- SECRET_KEY
- FLASK_DEBUG
- FLASK_APP
- SQLALCHEMY_DATABASE_URI
In the root of your project directory, run the following command
flask run
python -m flask shell
Import the db istance in shell environment
from src.database import db
Import Model in shell environment
from src.models.<ModelName> import <Model>
Add records
record=ModelConstructor(id=1, ...)
Add the records to the session and then commit the session
db.session.add(record)
db.session.commit()