remove SQLAlchemy warning

This commit is contained in:
ziirish 2016-08-01 20:41:34 +02:00
parent bfa6e151b1
commit a79d0d5949

View file

@ -83,6 +83,7 @@ def create_db(myapp):
"""
if myapp.config['WITH_SQL']:
from .ext.sql import db
myapp.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db.init_app(myapp)
return db