Update URL patterns to use new path() and re_path().

Review Request #11956 — Created Jan. 21, 2022 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

Django 2+ provides a new method for definings URLs, path(). This is
much simpler for basic cases, and makes URL patterns more readable. In
addition, the old url() method has been renamed to re_path(), and a
warning is raised when using the old name, so switch to that too.

Ran unit tests.

Changes between revision 3 and 4

orig
1
2
3
4

Commits

Summary ID Author
Update URL patterns to use new path() and re_path().
Django 2+ provides a new method for definings URLs, `path()`. This is much simpler for basic cases, and makes URL patterns more readable. In addition, the old `url()` method has been renamed to `re_path()`, and a warning is raised when using the old name, so switch to that too. Testing Done: Ran unit tests.
3be9cce18f4d4486e5b562be456ea96d5d768f37 David Trowbridge
Update URL patterns to use new path() and re_path().
Django 2+ provides a new method for definings URLs, `path()`. This is much simpler for basic cases, and makes URL patterns more readable. In addition, the old `url()` method has been renamed to `re_path()`, and a warning is raised when using the old name, so switch to that too. Testing Done: Ran unit tests.
0bffd78fa1db5fba618a57556aa84c6751228e59 David Trowbridge
djblets/extensions/tests/test_views.py
djblets/urls/root.py
Loading...