Skip to content
This repository

Fix the appcontext_tearing_down example in docs #576

Closed
wants to merge 1 commit into from

3 participants

Simon Sapin Don't Add Me To Your Organization a.k.a The Travis Bot Armin Ronacher
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/signals.rst
2  docs/signals.rst
Source Rendered
@@ -285,7 +285,7 @@ The following signals exist in Flask:
285 285
         def close_db_connection(sender, **extra):
286 286
             session.close()
287 287
 
288  
-        from flask import request_tearing_down
  288
+        from flask import appcontext_tearing_down
289 289
         appcontext_tearing_down.connect(close_db_connection, app)
290 290
 
291 291
    This will also be passed an `exc` keyword argument that has a reference
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.