User Authentication

The Django Boilerplate you've downloaded comes equipped with a user authentication system powered by the Django Allauth package. This guide is designed to help you set up user authentication for your app leveraging Django Allauth's capabilities.

Django Allauth offers a comprehensive and adaptable authentication framework for Django, featuring a suite of views, forms, and templates tailored for user authentication, registration, and account management. In this guide, we'll delve into the steps required to implement user authentication in your Django app with the Django Allauth package.

User Sign Up/In with Email Address

We've pre-configured email-based sign-up functionality for immediate use.

  • Navigate to https://<yourdomain>.com/accounts/signup/ to access the sign-up page.
  • Input your email and password to register.
  • Upon registration, a confirmation email will be sent to verify your email address.
  • Should the confirmation email not arrive within a minute, please check your spam folder or the Mailgun logs, as Mailgun is the email backend we've configured.

The confirmation email will resemble the following:

Hello from Interview DB!

You're receiving this email because user [email protected] has used your email address to register an account on interviewdb.com.

To confirm this is correct, please visit https://interviewdb.com/accounts/confirm-email/confirmation_code/

Thank you for choosing Interview DB!
interviewdb.com

By clicking the confirmation link, you'll verify your email and subsequently be able to log in.

Next, we'll explore adding a Google login option to our app.

Other Social Logins

Django AllAuth supports an extensive array of social logins, making it straightforward to integrate them into your app. For detailed information on available providers and setup instructions, refer to the Django AllAuth supports more than a few hundreds social logins, and you can easily add them to your app. For more information, please refer to the Django AllAuth documentation.

Was this page helpful?