Skip to content
Myr

quickstart: import `request` in HTTP methods example

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

authored by Alexey Shamrin · committed by Alexey Shamrin · parent 5d20501 · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/quickstart.rst+2 added
255 unmodified lines
256accessing URLs. By default, a route only answers to `GET` requests, but that257can be changed by providing the `methods` argument to the258:meth:`~flask.Flask.route` decorator. Here are some examples::259260 from flask import request261262 @app.route('/login', methods=['GET', 'POST'])263 def login():264 if request.method == 'POST':265 do_the_login()
589 unmodified lines