Skip to content
Myr

Rename teardown example to avoid confusion.

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

authored by Ron DuPlain · committed by Ron DuPlain · parent 2647bec · Browse files · 1 file+5 added−4 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+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:docs/reqcontext.rst+5 added-4 removed
172 unmodified lines
173It's easy to see the behavior from the command line:174175>>> app = Flask(__name__)176>>> @app.teardown_request177... def after_request(exception=None):178... print 'after request'179... 177... def teardown_request(exception=None):178... print 'this runs after request'179...180>>> ctx = app.test_request_context()181>>> ctx.push()182>>> ctx.pop()183after request183this runs after request184>>>185186.. _notes-on-proxies:187188Notes On Proxies
43 unmodified lines