Browse Source

quickstart: import `request` in HTTP methods example

pull/878/head
Alexey Shamrin 11 years ago
parent
commit
f161a71c19
  1. 2
      docs/quickstart.rst

2
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':

Loading…
Cancel
Save