The Process flow of Model-Template-View design pattern in Django

April 24, 2019  

This is one of the books I’ve used multiple times for reference on a django project. It’s really helpful for beginners wanting to get their hands dirty on the Django Framework.

Reference:

Build your first website with Python and Django: Build and Deploy a website with Python & Django

  • MODEL

  • THE MODEL RETRIEVES DATA FROM THE DATABASE, WHICH IS REQUESTED BY THE;

  • VIEW

  • WHICH APPLIES ANY BUSINESS LOGIC AND FORMATTING TO THE MODEL DATA AND THEN SENDS THE PACKAGED AND FORMATTED DATA TO THE;

  • TEMPLATE

  • WHICH THEN RENDERS THE DATA WITH ANY DISPLAY LOGIC NECESSARY.

Model-View-Controller (MVC) Explained – With Legos : https://realpython.com/the-model-view-controller-mvc-paradigm-summarized-with-legos/

Buy me a beer Buy me a beer