Add commit on teardown.
This commit is contained in:
parent
6a38d62d47
commit
3152d141e9
@ -25,6 +25,7 @@ app = Flask(__name__, static_folder=None)
|
|||||||
app.config.from_pyfile('config.cfg')
|
app.config.from_pyfile('config.cfg')
|
||||||
|
|
||||||
app.config['SQLALCHEMY_ECHO'] = app.debug
|
app.config['SQLALCHEMY_ECHO'] = app.debug
|
||||||
|
app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = True
|
||||||
|
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user