summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2016-04-02 12:49:12 +0200
committerTim Graham <timograham@gmail.com>2016-04-30 20:09:31 -0400
commiteb5d7bc2f465b055f4eb54a3d238502bdddb6d7e (patch)
tree597da9f4f1a56316ee5f8616d30638604c3f69a8 /docs/ref
parent914c72be2abb1c6dd860cb9279beaa66409ae1b2 (diff)
Fixed #26440 -- Added a warning for non-url()s in urlpatterns.
Thanks Burhan Khalid for the initial patch and knbk/timgraham for review.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/checks.txt2
1 files changed, 2 insertions, 0 deletions
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 ``<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.