Skip to content

Commit

Permalink
Added database creation
Browse files Browse the repository at this point in the history
  • Loading branch information
WeebNetsu committed Oct 10, 2022
1 parent 1362f3e commit dc89e45
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@
db.init_app(app) # initialize the db with the flask app

app.register_blueprint(root_page, url_prefix="/")

"""
Creating the databse:
with app.app_context():
db.create_all()
In Shell:
from __init__ import db, Users
"""

0 comments on commit dc89e45

Please sign in to comment.