Old SQLAlchemy version, old fix

This commit is contained in:
Michel Roux 2019-12-27 14:18:59 +01:00
parent 6b7b45c18d
commit 0abdfeef57

View File

@ -29,7 +29,7 @@ app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://%s:%s@%s/%s?charset=utf
db_user, db_password, db_host, db_name
)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {'pool_recycle': 200}
app.config['SQLALCHEMY_POOL_RECYCLE'] = 200
app.config['SQLALCHEMY_ECHO'] = IS_DEBUG
auth = HTTPBasicAuth()
db = SQLAlchemy(app)