Skip to content
Myr

small error in tutorial

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

authored by Bastian Hoyer · committed by Bastian Hoyer · parent de3b6ab · 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
20 unmodified lines
21 g.db.close()2223Functions marked with :meth:`~flask.Flask.before_request` are called before24a request and passed no arguments. Functions marked with25:meth:`~flask.Flask.teardown_request` are called after a request and25:meth:`~flask.Flask.after_request` are called after a request and26passed the response that will be sent to the client. They have to return27that response object or a different one. They are however not guaranteed28to be executed if an exception is raised, this is where functions marked with29:meth:`~flask.Flask.teardown_request` come in. They get called after the
12 unmodified lines