Add commit on teardown.
This commit is contained in:
1 parent
6a38d62d47
commit
3152d141e9
1 file changed
+1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user