django-rest-framework-social-oauth2 icon indicating copy to clipboard operation
django-rest-framework-social-oauth2 copied to clipboard

Quick fix to enable this package to work with Django 4 and the older versions

Open vigneshwrn9 opened this issue 3 years ago • 1 comments

Hi There, would it be possible to add this line of code within the "rest_framework_social_oauth2/urls.py" file. This helps with Django4.0 and would also work with the older version.

Replace

from django.conf.urls import url, include

To

from django.conf.urls import include
try:
    from django.conf.urls import url
except ImportError:
    from django.urls import re_path as url


vigneshwrn9 avatar Jul 21 '22 15:07 vigneshwrn9

Can we have this merge as well.

herobaby71 avatar Jul 27 '22 12:07 herobaby71