From f161a71c190da7320d4a6be177c14928961fdf09 Mon Sep 17 00:00:00 2001 From: Alexey Shamrin Date: Thu, 3 Oct 2013 05:15:27 +0400 Subject: [PATCH] quickstart: import `request` in HTTP methods example --- docs/quickstart.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 3cb9b2f7..83ed2af8 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -257,6 +257,8 @@ accessing URLs. By default, a route only answers to `GET` requests, but that can be changed by providing the `methods` argument to the :meth:`~flask.Flask.route` decorator. Here are some examples:: + from flask import request + @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST':