summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonatas C. Damasceno <jonatas.cd@gmail.com>2019-05-06 17:54:11 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-05-14 06:47:14 +0200
commit72fe36c2467823368603327bebae77f753550899 (patch)
tree65ea9d6cc95dc433e5b84a7a21b544a1b2a46b10 /docs
parent5d1cf9c4424e976af71fd079165d86d2bcc13fa9 (diff)
[2.2.x] Fixed #30437 -- Clarified that urlpatterns can be a sequence.
Backport of 8aad3321ed6f0b603361767a4fe00d046b5fdd34 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/urls.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
index d1b84e851c..3a17a45322 100644
--- a/docs/topics/http/urls.txt
+++ b/docs/topics/http/urls.txt
@@ -41,8 +41,8 @@ algorithm the system follows to determine which Python code to execute:
:setting:`ROOT_URLCONF` setting.
#. Django loads that Python module and looks for the variable
- ``urlpatterns``. This should be a Python list of :func:`django.urls.path`
- and/or :func:`django.urls.re_path` instances.
+ ``urlpatterns``. This should be a :term:`sequence` of
+ :func:`django.urls.path` and/or :func:`django.urls.re_path` instances.
#. Django runs through each URL pattern, in order, and stops at the first
one that matches the requested URL.
@@ -317,8 +317,8 @@ accessed. This makes the system blazingly fast.
Syntax of the ``urlpatterns`` variable
======================================
-``urlpatterns`` should be a Python list of :func:`~django.urls.path` and/or
-:func:`~django.urls.re_path` instances.
+``urlpatterns`` should be a :term:`sequence` of :func:`~django.urls.path`
+and/or :func:`~django.urls.re_path` instances.
Error handling
==============