Skip to content
Myr

Merge pull request #878 from shamrin/patch-1

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

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents 06857c9, f161a71 · 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.

Trailers

  • quickstart: import `request` in HTTP methods example

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
256 unmodified lines
257accessing URLs. By default, a route only answers to `GET` requests, but that258can be changed by providing the `methods` argument to the259:meth:`~flask.Flask.route` decorator. Here are some examples::260261 from flask import request262263 @app.route('/login', methods=['GET', 'POST'])264 def login():265 if request.method == 'POST':266 do_the_login()
589 unmodified lines