from django.urls import re_path from social_auth.views import auth, complete urlpatterns = [ # authentication re_path( r"^associate/complete/(?P[^/]+)/$", complete, name="socialauth_associate_complete" ), re_path( r"^associate/(?P[^/]+)/$", auth, name="socialauth_associate", ), ]