forked from orbit-oss/flask
docs: :file:app.py, :file:yourapp/templates
This commit is contained in:
parent
3fa4fd0908
commit
a8f570cc62
32 changed files with 93 additions and 93 deletions
|
|
@ -22,7 +22,7 @@ for you to the application.
|
|||
|
||||
To do this we can create a function and hook it into the ``flask`` command
|
||||
that initializes the database. Let me show you the code first. Just add
|
||||
this function below the `connect_db` function in `flaskr.py`::
|
||||
this function below the `connect_db` function in :file:`flaskr.py`::
|
||||
|
||||
def init_db():
|
||||
db = get_db()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue