Add SQLAlchemy configuration to avoid warning.

This commit is contained in:
Alexis Lahouze 2016-06-16 23:52:43 +02:00
parent c5a73623cf
commit 13080ad348
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ app.config.from_pyfile('config.cfg')
app.config['SQLALCHEMY_ECHO'] = app.debug
app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = True
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
# Database initialization.
db = SQLAlchemy(app)