mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
This commit is contained in:
committed by
Tim Graham
parent
c4c128d67c
commit
df41b5a05d
@@ -657,7 +657,7 @@ URLs
|
||||
* The application namespace can now be set using an ``app_name`` attribute
|
||||
on the included module or object. It can also be set by passing a 2-tuple
|
||||
of (<list of patterns>, <application namespace>) as the first argument to
|
||||
:func:`~django.conf.urls.include`.
|
||||
``include()``.
|
||||
|
||||
* System checks have been added for common URL pattern mistakes.
|
||||
|
||||
@@ -1233,8 +1233,8 @@ extending. This change necessitated a new template loader API. The old
|
||||
Details about the new API can be found :ref:`in the template loader
|
||||
documentation <custom-template-loaders>`.
|
||||
|
||||
Passing a 3-tuple or an ``app_name`` to :func:`~django.conf.urls.include()`
|
||||
---------------------------------------------------------------------------
|
||||
Passing a 3-tuple or an ``app_name`` to ``include()``
|
||||
-----------------------------------------------------
|
||||
|
||||
The instance namespace part of passing a tuple as an argument to ``include()``
|
||||
has been replaced by passing the ``namespace`` argument to ``include()``. For
|
||||
|
||||
Reference in New Issue
Block a user