Convert unneeded regular expressions to strings in URL patterns #3279

Closed
opened 2025-12-29 18:27:23 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Feb 5, 2020).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Convert all old-style regular expressions in urls.py files to regular strings.

Justification

Since switching from re_path() to path(), regular expressions are no longer needed for most URLs.

Originally created by @jeremystretch on GitHub (Feb 5, 2020). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Convert all old-style regular expressions in `urls.py` files to regular strings. ### Justification Since switching [from `re_path()` to `path()`](https://docs.djangoproject.com/en/3.0/ref/urls/#django.urls.path), regular expressions are no longer needed for most URLs.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:27:23 +01:00
adam closed this issue 2025-12-29 18:27:23 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3279