Add console script with ipython setup
This commit is contained in:
9
ipython_setup.py
Normal file
9
ipython_setup.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from atst.app import make_config, make_app
|
||||
from atst.database import db
|
||||
from atst.models import *
|
||||
|
||||
app = make_app(make_config())
|
||||
ctx = app.app_context()
|
||||
ctx.push()
|
||||
|
||||
print("\nWelcome to atst. This shell has all models in scope, and a SQLAlchemy session called db.")
|
Reference in New Issue
Block a user