flask shell
, by default, pre-imports the application instanceapp
- Create a function in the main script decorated with
@app.shell_context_processor
to register items to the shell context
- Run
flask shell
db.create_all()
to create all modelsdb.drop_all()
to drop all models