Skip to content
Myr

Merge pull request #1096 from slater/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update dbcon.rst

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 6f990f6, 171253a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/dbcon.rst+1 added-1 removed
49 unmodified lines
5051Functions marked with :meth:`~flask.Flask.teardown_appcontext` are called52every time the app context tears down. So what does this mean?53Essentially the app context is created before the request comes in and is54destroyed (teared down) whenever the request finishes. A teardown can54destroyed (torn down) whenever the request finishes. A teardown can55happen because of two reasons: either everything went well (the error56parameter will be `None`) or an exception happened in which case the error57is passed to the teardown function.58
20 unmodified lines