From eb5d7bc2f465b055f4eb54a3d238502bdddb6d7e Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Sat, 2 Apr 2016 12:49:12 +0200 Subject: Fixed #26440 -- Added a warning for non-url()s in urlpatterns. Thanks Burhan Khalid for the initial patch and knbk/timgraham for review. --- docs/ref/checks.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 7c15bbeb7b..486b88cc2e 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -631,3 +631,5 @@ The following checks are performed on your URL configuration: * **urls.W003**: Your URL pattern ```` has a ``name`` including a ``:``. Remove the colon, to avoid ambiguous namespace references. +* **urls.E004**: Your URL pattern ```` is invalid. Ensure that + ``urlpatterns`` is a list of :func:`~django.conf.urls.url()` instances. -- cgit v1.3