Skip to content

Commit 6789427

Browse files
authored
Merge pull request #43 from vadave/master
Fix shell context for flask cli
2 parents 52134e5 + 2d57960 commit 6789427

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

{{cookiecutter.app_slug}}/project/server/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def server_error_page(error):
7676
return render_template('errors/500.html'), 500
7777

7878
# shell context for flask cli
79-
app.shell_context_processor({'app': app, 'db': db})
79+
@app.shell_context_processor
80+
def ctx():
81+
return {'app': app, 'db': db}
8082

8183
return app

0 commit comments

Comments
 (0)