Skip to content

Commit 12d6ec4

Browse files
committed
Fix with block
1 parent 36d70d8 commit 12d6ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/dbinit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ database. Let me show you the code first. Just add that function below
2525
the `connect_db` function in `flaskr.py`::
2626

2727
def init_db():
28-
app app.app_context():
28+
with app.app_context():
2929
db = get_db()
3030
with app.open_resource('schema.sql', mode='r') as f:
3131
db.cursor().executescript(f.read())

0 commit comments

Comments
 (0)