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

(115 views)

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 settings.py 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 manage.py migrate Then add social_django.urls to your....

March 25, 2019
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
© HAKIN9 MEDIA SP. Z O.O. SP. K. 2023

Download Free eBook

Step 1 of 4

Name(Required)

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.