Skip to content

Commit

Permalink
[2.2.x] Fixed #30437 -- Clarified that urlpatterns can be a sequence.
Browse files Browse the repository at this point in the history
Backport of 8aad332 from master
  • Loading branch information
joncasdam authored and felixxm committed May 14, 2019
1 parent 5d1cf9c commit 72fe36c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/topics/http/urls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
==============
Expand Down

0 comments on commit 72fe36c

Please sign in to comment.