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.
2 parents 6f9531c + f964d46 commit 97e34b8Copy full SHA for 97e34b8
manage.py
@@ -25,6 +25,10 @@
25
)
26
COV.start()
27
28
+@app.shell_context_processor
29
+def make_shell_context():
30
+ return dict(app=app, db=db)
31
+
32
@cli.command()
33
def create_db():
34
db.drop_all()
project/server/__init__.py
@@ -75,7 +75,4 @@ 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