django-rest-framework-social-oauth2
django-rest-framework-social-oauth2 copied to clipboard
Fixbug Fixing "urls" to support Django 4, older versions Fixes #254
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