-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated url() with re_path()
url() was deprecated in Django 3, and removed in Django 4.
- Loading branch information
1 parent
c945081
commit add93b1
Showing
4 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from __future__ import absolute_import | ||
|
||
from django.conf.urls import url | ||
from django.urls import re_path | ||
|
||
from oauth2_provider import views | ||
|
||
from .views import LegoAuthorizationView | ||
|
||
urlpatterns = ( | ||
url(r"^authorize/$", LegoAuthorizationView.as_view(), name="authorize"), | ||
url(r"^token/$", views.TokenView.as_view(), name="token"), | ||
url(r"^revoke_token/$", views.RevokeTokenView.as_view(), name="revoke-token"), | ||
re_path(r"^authorize/$", LegoAuthorizationView.as_view(), name="authorize"), | ||
re_path(r"^token/$", views.TokenView.as_view(), name="token"), | ||
re_path(r"^revoke_token/$", views.RevokeTokenView.as_view(), name="revoke-token"), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters