Skip to content

Commit 1b2d73d

Browse files
smithdc1auvipy
authored andcommitted
Updated url() to path()
url() is deprecated in Django 3.1. Path is available in all supported versions of Django.
1 parent 3bde632 commit 1b2d73d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
from django.conf.urls import include, url
21
from django.contrib import admin
2+
from django.urls import include, path
33

44

55
admin.autodiscover()
66

77

88
urlpatterns = [
9-
url(r"^o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
9+
path("o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
1010
]
1111

1212

13-
urlpatterns += [url(r"^admin/", admin.site.urls)]
13+
urlpatterns += [path("admin/", admin.site.urls)]

0 commit comments

Comments
 (0)