We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a35f0e commit 80de2dfCopy full SHA for 80de2df
website/__init__.py
@@ -36,5 +36,6 @@ def load_user(id):
36
37
def create_database(app):
38
if not path.exists('website/' + DB_NAME):
39
- db.create_all(app=app)
+ with app.app_context():
40
+ db.create_all()
41
print('Created Database!')
0 commit comments