Last updated
Last updated
First, go to and create a project.
Click on it and choose web application, and add these two URLs,
http://127.0.0.1:8000 for Authorized JavaScript origins
http://127.0.0.1:8000/accounts/google/login/callback/ for Authorized redirect URIs
Provider: Google
Name: OAuth App
Client id: [YOUR GOOGLE AUTH CLIENT ID]
Secret key: [YOUR GOOGLE AUTH CLIENT SECRET]
Sites: 127.0.0.1:8000
Then, click on Social Applications click Add and fill in the details as follows
If you have customized django-allauth templates then you can directly use this code in your template.
Now run the server using python manage.py runserver and open admin. Go to this page and make these changes,
Now logout yourself because you logged in as a superuser and open and you can see Google login option.