Kaydet (Commit) 8aad3321 authored tarafından Jonatas C. Damasceno's avatar Jonatas C. Damasceno Kaydeden (comit) Mariusz Felisiak

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

üst 7619a336
...@@ -41,8 +41,8 @@ algorithm the system follows to determine which Python code to execute: ...@@ -41,8 +41,8 @@ algorithm the system follows to determine which Python code to execute:
:setting:`ROOT_URLCONF` setting. :setting:`ROOT_URLCONF` setting.
#. Django loads that Python module and looks for the variable #. Django loads that Python module and looks for the variable
``urlpatterns``. This should be a Python list of :func:`django.urls.path` ``urlpatterns``. This should be a :term:`sequence` of
and/or :func:`django.urls.re_path` instances. :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 #. Django runs through each URL pattern, in order, and stops at the first
one that matches the requested URL. one that matches the requested URL.
...@@ -317,8 +317,8 @@ accessed. This makes the system blazingly fast. ...@@ -317,8 +317,8 @@ accessed. This makes the system blazingly fast.
Syntax of the ``urlpatterns`` variable Syntax of the ``urlpatterns`` variable
====================================== ======================================
``urlpatterns`` should be a Python list of :func:`~django.urls.path` and/or ``urlpatterns`` should be a :term:`sequence` of :func:`~django.urls.path`
:func:`~django.urls.re_path` instances. and/or :func:`~django.urls.re_path` instances.
Error handling Error handling
============== ==============
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment