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

Django configuration sample uses django.conf.urls.url(), which was removed in Django 4.0 #201

Open
garcia opened this issue Jan 21, 2024 · 0 comments

Comments

@garcia
Copy link

garcia commented Jan 21, 2024

https://python-social-auth.readthedocs.io/en/latest/configuration/django.html#urls-entries

urlpatterns = patterns('',
    ...
    url('', include('social_django.urls', namespace='social'))
    ...
)

The url() function was removed in Django's 4.0 release. Old documentation states it was an alias for django.urls.re_path(), but the empty string route doesn't require regex, so django.urls.path() would suffice here:

  urlpatterns = patterns('',
      ...
-     url('', include('social_django.urls', namespace='social'))
+     path('', include('social_django.urls', namespace='social'))
      ...
  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant