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 2 and 3

orig
1
2
3
4

Commits

Summary ID Author
Update URL patterns.
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.
eee12ddc7866436116eb522af848bd1ef7094517 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.
3be9cce18f4d4486e5b562be456ea96d5d768f37 David Trowbridge
djblets/extensions/hooks.py
djblets/extensions/manager.py
djblets/extensions/tests/test_url_hook.py
djblets/extensions/tests/test_views.py
djblets/feedview/test_urls.py
djblets/urls/root.py
Loading...