forked from orbit-oss/flask
parent
18413ed1bf
commit
5b462dd382
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ The following signals exist in Flask:
|
|||
def close_db_connection(sender, **extra):
|
||||
session.close()
|
||||
|
||||
from flask import request_tearing_down
|
||||
from flask import appcontext_tearing_down
|
||||
appcontext_tearing_down.connect(close_db_connection, app)
|
||||
|
||||
This will also be passed an `exc` keyword argument that has a reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue