Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#27648 closed Cleanup/optimization (fixed)

Deprecate ("iLmsu") regex groups in URLpatterns

Reported by: Tim Graham Owned by: Tim Graham
Component: Core (URLs) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As discussed on django-developers, Python deprecated usage of flags not at the start of a regular expression, e.g. 'CaseInsensitive(?i)' instead of '(?i)CaseInsensitive'. A new solution would be required to support these flags in Django, however, since case-insensitive URLs aren't a good practice and the other flags don't have value in urlpatterns, support for this will be removed. An alternative solution for those wanting the functionality is to write a 404 handler to look for uppercase characters and redirect to a lowercase equivalent.

Change History (4)

comment:1 by Tim Graham, 8 years ago

Has patch: set

comment:2 by Marten Kenbeek, 8 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by GitHub <noreply@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 51cde87:

Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.

comment:4 by Tim Graham <timograham@…>, 7 years ago

In ba42456c:

Refs #27648 -- Removed support for (iLmsu) regex groups in url() patterns.

Per deprecation timeline.

Note: See TracTickets for help on using tickets.
Back to Top