atst/ipython_setup.py
2020-03-04 11:51:15 -05:00

12 lines
271 B
Python

from atat.app import make_config, make_app
from atat.database import db
from atat.models import *
app = make_app(make_config())
ctx = app.app_context()
ctx.push()
print(
"\nWelcome to atat. This shell has all models in scope, and a SQLAlchemy session called db."
)