1.

Django design pattern?

Answer»

Django follows MVC pattern (Model-View-CONTROLLER), also referred to as MTV (Model-TEMPLATE-View). 

  • Model – describes database schema 
  • Views – CONTROLS what USER can view. It retrieves data from the table and passes it to the template which is rendered to Browser eventually.
  • Template – Determines how the user SEES it. 
  • Controller – controls the entire flow of models and data.


Discussion

No Comment Found