An important design pattern, thatβs at the core of every site built on Django has three types of components:
Models: A model tells Django how to work with data that will be stored in the app. Code-wise, a model is just a class, it has attributes and methods, just like another class.
Templates: Generates HTML (presentation logic only)
Views: Takes a request parameter and returns a response object