1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #26440 -- Added a warning for non-url()s in urlpatterns.

Thanks Burhan Khalid for the initial patch and knbk/timgraham
for review.
This commit is contained in:
Alasdair Nicol
2016-04-02 12:49:12 +02:00
committed by Tim Graham
parent 914c72be2a
commit eb5d7bc2f4
4 changed files with 67 additions and 3 deletions

View File

@@ -631,3 +631,5 @@ The following checks are performed on your URL configuration:
* **urls.W003**: Your URL pattern ``<pattern>`` has a ``name``
including a ``:``. Remove the colon, to avoid ambiguous namespace
references.
* **urls.E004**: Your URL pattern ``<pattern>`` is invalid. Ensure that
``urlpatterns`` is a list of :func:`~django.conf.urls.url()` instances.