3š
Itās hard to pin point the error since you did not include the rest of your codes. The error simply means it cannot find the url with name āredirectā. So there are 2 things you can check:
- Have you put in correct urls settings for the end points as per django-rest-auth document ?
urlpatterns = [
...,
url(r'^rest-auth/', include('rest_auth.urls'))
]
- Or maybe you forgot the redirect url when you specified the Google social app, as per django-all-auth document ?
Under āAPIs & authā go to āCredentialsā and create a new Client ID.
Probably you will want a āWeb applicationā Client ID. Provide your
domain name or test domain name in āAuthorized JavaScript originsā.
Finally fill in http://127.0.0.1:8000/accounts/google/login/callback/
in the āAuthorized redirect URIā field. You can fill multiple URLs,
one for each test domain. After creating the Client ID you will find
all details for the Django configuration on this page.
š¤Nathan Do
Source:stackexchange.com