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.

Diff Revision 4 (Latest)

orig
1
2
3
4

Commits

First Last 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.
0bffd78fa1db5fba618a57556aa84c6751228e59 David Trowbridge
djblets/auth/urls.py
djblets/extensions/hooks.py
djblets/extensions/manager.py
djblets/extensions/resources.py
djblets/extensions/urls.py
djblets/extensions/tests/test_url_hook.py
djblets/extensions/tests/test_views.py
djblets/extensions/tests/apps/urls.py
djblets/feedview/test_urls.py
djblets/integrations/urls.py
djblets/log/urls.py
djblets/testing/urls.py
djblets/urls/root.py
djblets/urls/tests.py
djblets/webapi/resources/base.py
djblets/webapi/resources/root.py
djblets/webapi/tests/test_oauth2_auth.py
Loading...