Skip to content

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

Closed
@vigneshwrn9

Description

@vigneshwrn9

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions