Django authentication via Google, Deezer, and Spotify by Nikita Kholin


In this tutorial we will add an ability to sign up, sign in via Google, Deezer, and Spotify, view a success screen, and sign out afterward. Our project is going to be about music releases notifications. I’ve already created a Django project with a landing page in a previous tutorial. How will we do that? We’re going to use a social-app-django library. It supports a huge number of auth providers. They are also called “Backends” in the library. As you could guess, we will need Google, Deezer, and Spotify. To install the library please follow an official installation guide. Adding social-app-django to your Django project First of all, you need to add the library to our INSTALLED_APPS in your project’s INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # ... 'social_django', # ... 'pages', ] After that, migrate your database by running python3 migrate Then add social_django.urls to your....

March 25, 2019
Notify of
Inline Feedbacks
View all comments
© HAKIN9 MEDIA SP. Z O.O. SP. K. 2023
What certifications or qualifications do you hold?
Max. file size: 150 MB.
What level of experience should the ideal candidate have?
What certifications or qualifications are preferred?

Download Free eBook

Step 1 of 4


We’re committed to your privacy. Hakin9 uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy.