Update: Uncomment db & remove patch_all

This commit is contained in:
Yûki VACHOT 2022-01-04 22:39:52 +01:00
parent ac3236d9f8
commit af41c64517

View file

@ -5,8 +5,7 @@ import sys
import os
db = SQLAlchemy()
patch_all()
#patch_all()
def create_app():
app = Flask(__name__, instance_relative_config=False)
@ -26,9 +25,9 @@ def create_app():
else:
print('ENV Variables passed : ', app.config['SQLALCHEMY_BINDS'])
# db.init_app(app)
db.init_app(app)
with app.app_context():
from . import routes
# db.create_all()
db.create_all()
return app