Skip to content

Commit ff59db1

Browse files
author
Daniel Neuhäuser
committed
Merge pull request pallets#858 from svieira/patch-2
Patch for tutorial (minor code error)
2 parents 36d70d8 + 12d6ec4 commit ff59db1

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)