We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e751a3 commit 1f23c3cCopy full SHA for 1f23c3c
{{cookiecutter.app_slug}}/manage.py
@@ -27,11 +27,6 @@
27
COV.start()
28
29
30
-@app.shell_context_processor
31
-def make_shell_context():
32
- return dict(app=app, db=db)
33
-
34
35
@cli.command()
36
def create_db():
37
db.drop_all()
{{cookiecutter.app_slug}}/project/server/__init__.py
@@ -75,4 +75,7 @@ def page_not_found(error):
75
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})
80
+
81
return app
0 commit comments