8
Implementing User Signup and Login
The next part of our app will concern user authentication, where we allow users to sign up and log in. Implementing user authentication is famously hard. Fortunately, we can use Django’s powerful built-in authentication system to take care of the many security pitfalls that could arise if we were to create our own user authentication from scratch.
In this chapter, we will cover the following topics:
- Creating an accounts app
- Creating a basic signup page
- Improving a signup page to handle POST actions
- Customizing UserCreationForm
- Creating a login page
- Implementing the logout functionality
By the end of this chapter, you will know how to implement an authentication system and handle common authentication actions. ...
Get Django 5 for the Impatient - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.