summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilu_vatar_ <43726409+Nicolas-Reyland@users.noreply.github.com>2021-08-02 08:00:43 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-08-02 08:50:22 +0200
commit2c46e553144903d5d7635e5045907796c0e758b9 (patch)
tree2e1e0904503a413c481090adcfe268c882e6fc98
parent87e739976037275834e2698dd5443d7fce4ef8ef (diff)
[3.2.x] Clarified URL patterns in tutorial 3.
Co-authored-by: Nick Pope <nick@nickpope.me.uk> Backport of 4114531cb763f7cf226d3904d3693af4dc634947 from main
-rw-r--r--docs/intro/tutorial03.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt
index 1fc72d3e79..82fa35e497 100644
--- a/docs/intro/tutorial03.txt
+++ b/docs/intro/tutorial03.txt
@@ -121,9 +121,10 @@ like so::
The ``question_id=34`` part comes from ``<int:question_id>``. Using angle
brackets "captures" part of the URL and sends it as a keyword argument to the
-view function. The ``:question_id>`` part of the string defines the name that
-will be used to identify the matched pattern, and the ``<int:`` part is a
+view function. The ``question_id`` part of the string defines the name that
+will be used to identify the matched pattern, and the ``int`` part is a
converter that determines what patterns should match this part of the URL path.
+The colon (``:``) separates the converter and pattern name.
Write views that actually do something
======================================