done: Define and Access the Database
This commit is contained in:
parent
2c204037a1
commit
e1bf3d159e
3 changed files with 69 additions and 0 deletions
|
|
@ -31,4 +31,7 @@ def create_app(test_config=None):
|
|||
def hello():
|
||||
return 'Hello, World!'
|
||||
|
||||
from . import db
|
||||
db.init_app(app)
|
||||
|
||||
return app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue