We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52134e5 + 2d57960 commit 6789427Copy full SHA for 6789427
{{cookiecutter.app_slug}}/project/server/__init__.py
@@ -76,6 +76,8 @@ def server_error_page(error):
76
return render_template('errors/500.html'), 500
77
78
# shell context for flask cli
79
- app.shell_context_processor({'app': app, 'db': db})
+ @app.shell_context_processor
80
+ def ctx():
81
+ return {'app': app, 'db': db}
82
83
return app
0 commit comments