diff --git a/accountant/__init__.py b/accountant/__init__.py index e403ecd..d22df55 100644 --- a/accountant/__init__.py +++ b/accountant/__init__.py @@ -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)