Skip to content

Commit 658ba5a

Browse files
author
islam kamel
committed
Fixbug Fixing urls to support django 4, older versions
1 parent 61b45b4 commit 658ba5a

File tree

1 file changed

+6
-1
lines changed
  • rest_framework_social_oauth2

1 file changed

+6
-1
lines changed

rest_framework_social_oauth2/urls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
from django.conf.urls import url, include
1+
from django.conf.urls import include
2+
try:
3+
from django.conf.urls import url
4+
except ImportError:
5+
from django.urls import re_path as url
6+
27
from oauth2_provider.views import AuthorizationView
38

49
from .views import ConvertTokenView, TokenView, RevokeTokenView, invalidate_sessions, DisconnectBackendView

0 commit comments

Comments
 (0)