From df41b5a05d4e00e80e73afe629072e37873e767a Mon Sep 17 00:00:00 2001 From: Sjoerd Job Postmus Date: Thu, 20 Oct 2016 19:29:04 +0200 Subject: Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201. Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs. --- django/core/checks/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django/core') diff --git a/django/core/checks/urls.py b/django/core/checks/urls.py index 0f65d3f3b7..e51ca3fc1f 100644 --- a/django/core/checks/urls.py +++ b/django/core/checks/urls.py @@ -81,13 +81,13 @@ def get_warning_for_invalid_pattern(pattern): "have a prefix string as the first element.".format(pattern) ) elif isinstance(pattern, tuple): - hint = "Try using url() instead of a tuple." + hint = "Try using path() instead of a tuple." else: hint = None return [Error( "Your URL pattern {!r} is invalid. Ensure that urlpatterns is a list " - "of url() instances.".format(pattern), + "of path() and/or re_path() instances.".format(pattern), hint=hint, id="urls.E004", )] -- cgit v1.3