Fixed a typo in the docs. This fixes #576 and #575

This commit is contained in:
Armin Ronacher 2012-10-07 14:50:21 +02:00
parent 18413ed1bf
commit 5b462dd382
1 changed files with 1 additions and 1 deletions

View File

@ -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