Fixed #30437 -- Clarified that urlpatterns can be a sequence.

This commit is contained in:
Jonatas C. Damasceno 2019-05-06 17:54:11 +02:00 committed by Mariusz Felisiak
parent 7619a33665
commit 8aad3321ed
1 changed files with 4 additions and 4 deletions

View File

@ -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
==============