Skip to content

Commit abe0842

Browse files
authored
Add shell context
1 parent 8e145ae commit abe0842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/server/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,7 @@ def page_not_found(error):
7575
def server_error_page(error):
7676
return render_template('errors/500.html'), 500
7777

78+
# shell context for flask cli
79+
app.shell_context_processor({'app': app, 'db': db})
80+
7881
return app

0 commit comments

Comments
 (0)