Skip to content

Commit 8c77dbd

Browse files
authored
Add shell_context_processor
1 parent 2991e76 commit 8c77dbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

manage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
)
2626
COV.start()
2727

28+
@app.shell_context_processor
29+
def make_shell_context():
30+
return dict(app=app, db=db)
31+
2832
@cli.command()
2933
def create_db():
3034
db.drop_all()

0 commit comments

Comments
 (0)