mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user