misleading sample correction
This commit is contained in:
parent
3dc6db9d0c
commit
39518ba9ce
1 changed files with 1 additions and 0 deletions
|
|
@ -176,6 +176,7 @@ the end of the factory function before returning the app.
|
|||
app = ...
|
||||
# existing code omitted
|
||||
|
||||
# do not copy create_app function again, only add following
|
||||
from . import db
|
||||
db.init_app(app)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue