Skip to content
Myr

split code and output

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 393bd46 · Browse files · 1 file+10 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

1 file+10 added−5 removed

  • other:+10 added−5 removed

1 file+10 added−5 removed

modified:docs/quickstart.rst+10 added-5 removed
275 unmodified lines
276277For example, here we use the :meth:`~flask.Flask.test_request_context` method278to try out :func:`~flask.url_for`. :meth:`~flask.Flask.test_request_context`279tells Flask to behave as though it's handling a request even while we use a280Python shell. See :ref:`context-locals`. ::280Python shell. See :ref:`context-locals`.281282.. code-block:: python283284 from flask import Flask, url_for285286 app = Flask(__name__)287
14 unmodified lines
302 print(url_for('login'))303 print(url_for('login', next='/'))304 print(url_for('profile', username='John Doe'))305304 # /305 # /login306 # /login?next=/307 # /user/John%20Doe306.. code-block:: text307308 /309 /login310 /login?next=/311 /user/John%20Doe312313314HTTP Methods315````````````316317Web applications use different HTTP methods when accessing URLs. You should
539 unmodified lines