Skip to content
Myr

fix codespell findings

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

authored by David Lord · committed by David Lord · parent 5880bef · Browse files · 4 files+4 added−5 removed
This commit

State

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

Diff stats

4 files+4 added−5 removed

  • other:+4 added−5 removed

4 files+4 added−5 removed

modified:docs/appcontext.rst+1 added-1 removed
117 unmodified lines
118The context will have the same lifetime as an activity, such as a request, CLI119command, or ``with`` block. Various callbacks and signals registered with the120app will be run during the context.121122When a Flask application handles a request, it pushes a requet context122When a Flask application handles a request, it pushes a request context123to set the active application and request data. When it handles a CLI command,124it pushes an app context to set the active application. When the activity ends,125it pops that context. Proxy objects like :data:`.request`, :data:`.session`,126:data:`.g`, and :data:`.current_app`, are accessible while the context is pushed
60 unmodified lines
modified:docs/quickstart.rst+1 added-1 removed
460 unmodified lines
461462If you have some experience with Python you might be wondering how that object463can be global when Flask handles multiple requests at a time. The answer is464that :data:`.request` is actually a proxy, pointing at whatever request is465currently being handled by a given worker, which is managed interanlly by Flask465currently being handled by a given worker, which is managed internally by Flask466and Python. See :doc:`/appcontext` for much more information.467468The current request method is available in the :attr:`~.Request.method`469attribute. To access form data (data transmitted in a ``POST`` or ``PUT``
389 unmodified lines
modified:docs/templating.rst+1 added-1 removed
181 unmodified lines
182:meth:`~.Flask.template_global` decorator or :meth:`~.Flask.add_template_global`183method.184185The same methods also exist on :class:`.Blueprint`, prefixed with ``app_`` to186indicate that the registered functions will be avaialble to all templates, not186indicate that the registered functions will be available to all templates, not187only when rendering from within the blueprint.188189The Jinja environment is also available as :attr:`~.Flask.jinja_env`. It may be190modified directly, as you would when using Jinja outside Flask.
65 unmodified lines
modified:.pre-commit-config.yaml+1 added-2 removed