Browse Source

Corrected decorators to remove duplicate teardown_request() and add after_request()

pull/276/head
consigliere 14 years ago
parent
commit
1a249e3389
  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. before each request and shut them down afterwards.
Flask allows us to do that with the :meth:`~flask.Flask.before_request`, 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:: decorators::
@app.before_request @app.before_request

Loading…
Cancel
Save