Views in Django
Python contains a function called Views which handles logics for processing requests and returning responses. Views work as the middle layer between models and the templates.
We can put views.py
file in our projects apps or project folder.
Here I can define views in the project folder and import these views in urls.py(which we discuss later).
Views.py

This shows how we send a response back to the browser and how we run the view we will discuss it later(i.e urls).