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 2

This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.

orig
1
2
3
4

Commits

First Last 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
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...