Skip to content
Myr

Merge pull request #1097 from slater/patch-2

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

Update dbinit.rst

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 9fb52d5, 35282a8 · 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
14 unmodified lines
15 sqlite3 /tmp/flaskr.db < schema.sql1617The downside of this is that it requires the sqlite3 command to be18installed which is not necessarily the case on every system. This also19require that we provide the path to the database which can introduce19requires that we provide the path to the database which can introduce20errors. It's a good idea to add a function that initializes the database21for you to the application.2223To do this we can create a function and hook it into the ``flask`` command
49 unmodified lines