Skip to content
Myr

fix grammar in links to app and request context

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

authored by Seth Rutner · committed by David Lord · parent b4094b3 · Browse files · 3 files+5 added−6 removed
This commit

State

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

Diff stats

3 files+5 added−6 removed

  • other:+5 added−6 removed

3 files+5 added−6 removed

modified:docs/appcontext.rst+1 added-1 removed
6 unmodified lines
7a request, CLI command, or other activity. Rather than passing the8application around to each function, the :data:`current_app` and9:data:`g` proxies are accessed instead.1011This is similar to the :doc:`/reqcontext`, which keeps track of11This is similar to :doc:`/reqcontext`, which keeps track of12request-level data during a request. A corresponding application context13is pushed when a request context is pushed.1415Purpose of the Context
142 unmodified lines
modified:docs/reqcontext.rst+3 added-3 removed
6 unmodified lines
7request. Rather than passing the request object to each function that8runs during a request, the :data:`request` and :data:`session` proxies9are accessed instead.1011This is similar to the :doc:`/appcontext`, which keeps track of the11This is similar to :doc:`/appcontext`, which keeps track of the12application-level data independent of a request. A corresponding13application context is pushed when a request context is pushed.1415
16 unmodified lines
32Lifetime of the Context33-----------------------3435When a Flask application begins handling a request, it pushes a request36context, which also pushes an :doc:`/appcontext`. When the request ends37it pops the request context then the application context.36context, which also pushes an :doc:`app context </appcontext>`. When the37request ends it pops the request context then the application context.3839The context is unique to each thread (or other worker type).40:data:`request` cannot be passed to another thread, the other thread41will have a different context stack and will not know about the request
224 unmodified lines
modified:docs/shell.rst+1 added-2 removed
19 unmodified lines
20that these functions are not only there for interactive shell usage, but21also for unit testing and other situations that require a faked request22context.2324Generally it's recommended that you read the :doc:`reqcontext`25chapter of the documentation first.24Generally it's recommended that you read :doc:`reqcontext` first.2526Command Line Interface27----------------------28
72 unmodified lines