Skip to content
Myr

Fix #611

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Minor but confusing typo in tutorial.

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent c2e5799 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/dbinit.rst+1 added-1 removed
30 unmodified lines
3132Next we can create a function called `init_db` that initializes the33database. For this we can use the `connect_db` function we defined34earlier. Just add that function below the `connect_db` function in35`flask.py`::35`flaskr.py`::3637 def init_db():38 with closing(connect_db()) as db:39 with app.open_resource('schema.sql') as f:
30 unmodified lines