Login Page
Follow step-by-step instructions to create a Login page for the Users app and practice it yourself.
We'll cover the following
Django offers a built-in authentication system which is installed with the Django package. The authentication system is called django.contrib.auth
, and it offers default views such as login, logout, password_change, and password_reset. We will use the login view for this website.
Login URL path
Whenever we created a new page for the Listings app, we added its URL in the app’s urls.py file. We’ll follow the same procedure for the Users app too. You can see the urls.py file of the Users app in the following widget where we have added the login URL path in line 7.
Get hands-on with 1200+ tech skills courses.