Browse Source

Merge pull request #276 from consigliere/patch-1

Corrected decorators to remove duplicate teardown_request() and add after
pull/275/merge
Armin Ronacher 14 years ago
parent
commit
ac2915d438
  1. 2
      docs/tutorial/dbcon.rst

2
docs/tutorial/dbcon.rst

@ -9,7 +9,7 @@ connection in all our functions so it makes sense to initialize them
before each request and shut them down afterwards.
Flask allows us to do that with the :meth:`~flask.Flask.before_request`,
:meth:`~flask.Flask.teardown_request` and :meth:`~flask.Flask.teardown_request`
:meth:`~flask.Flask.after_request` and :meth:`~flask.Flask.teardown_request`
decorators::
@app.before_request

Loading…
Cancel
Save