From 51e5ca4462064ac8869e9b3bf76890eb6ae77c98 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Thu, 1 Sep 2016 15:39:56 +0200 Subject: [1.10.x] Clarified URL regex check message with respect to include(). Backport of 7ed8b98f42cd3a9fa530bbb764d3d79230e0a7a7 from master --- 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 fce22689fe..a833d50fc2 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -644,6 +644,8 @@ The following checks are performed on your URL configuration: including URLs. * **urls.W002**: Your URL 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 ```` has a ``name`` including a ``:``. Remove the colon, to avoid ambiguous namespace references. -- cgit v1.3