mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Clarified URL regex check message with respect to include().
This commit is contained in:
parent
6b54504e66
commit
7ed8b98f42
3 changed files with 14 additions and 3 deletions
|
@ -657,6 +657,8 @@ The following checks are performed on your URL configuration:
|
|||
including URLs.
|
||||
* **urls.W002**: Your URL pattern ``<pattern>`` has a ``regex``
|
||||
beginning with a ``/``. Remove this slash as it is unnecessary.
|
||||
If this pattern is targeted in an :func:`~django.conf.urls.include`, ensure
|
||||
the :func:`~django.conf.urls.include` pattern has a trailing ``/``.
|
||||
* **urls.W003**: Your URL pattern ``<pattern>`` has a ``name``
|
||||
including a ``:``. Remove the colon, to avoid ambiguous namespace
|
||||
references.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue