From 51cde873d9fc8e4540f4efecbd39cfe8e770be38 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 27 Dec 2016 15:59:13 -0500 Subject: Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns. --- docs/internals/deprecation.txt | 3 +++ docs/releases/1.11.txt | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 29f4479c5a..c1a1c41cd6 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -48,6 +48,9 @@ details on these changes. * The ``Model._meta.has_auto_field`` attribute will be removed. +* Support for regular expression groups with ``iLmsu#`` in ``url()`` will be + removed. + .. _deprecation-removed-in-2.0: 2.0 diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 24247f7d75..48849f3b4d 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -747,3 +747,10 @@ Miscellaneous * ``Model._meta.has_auto_field`` is deprecated in favor of checking if ``Model._meta.auto_field is not None``. + +* Using regular expression groups with ``iLmsu#`` in ``url()`` is deprecated. + The only group that's useful is ``(?i)`` for case-insensitive URLs, however, + case-insensitive URLs aren't a good practice because they create multiple + entries for search engines, for example. An alternative solution could be to + create a :data:`~django.conf.urls.handler404` that looks for uppercase + characters in the URL and redirects to a lowercase equivalent. -- cgit v1.3