Add commit on teardown.

This commit is contained in:
Alexis Lahouze 2016-01-02 10:14:12 +01:00
parent 6a38d62d47
commit 3152d141e9
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ app = Flask(__name__, static_folder=None)
app.config.from_pyfile('config.cfg')
app.config['SQLALCHEMY_ECHO'] = app.debug
app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = True
db = SQLAlchemy(app)