Introduction
Views in Django decide what happens when someone visits a web page. They take the request and choose what to show back.
When you want to show a web page based on user input.
When you need to get data from a database and display it.
When you want to handle form submissions from users.
When you need to check if a user is logged in before showing content.
When you want to send different responses depending on the request type.