Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vigneshwrn9 opened this issue Jul 21, 2022 · 1 comment

Comments

@vigneshwrn9
Copy link

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 vigneshwrn9 changed the title Quick fix to Quick fix to enable this package to work with Django 4 and the older versions Jul 21, 2022
@herobaby71
Copy link

herobaby71 commented Jul 27, 2022

Can we have this merge as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants