Login View

Learn how to create a login view.

We'll cover the following

This lesson focuses on implementing the login view.

Adding a login view

We need a view to help users log in. The purpose of the LoginView is to use the LoginSerializer to serialize and validate the login credentials. To create it, we add the code below to our views.py.

Get hands-on with 1200+ tech skills courses.