Update URL patterns to use new path() and re_path().
Review Request #11956 — Created Jan. 21, 2022 and submitted — Latest diff uploaded
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 oldurl()
method has been renamed tore_path()
, and a
warning is raised when using the old name, so switch to that too.
Ran unit tests.
Diff Revision 1
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
Files
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 |
---|