25 Jun 2020

Django Concepts

  • django
  • concepts
  • python
  • Django

    MVT - Model View Template

    To accomplish Separation of Concern by separating…

  • Data - Model
  • Layout - Django Template Language allows dynamic data
  • Logic
  • Data from database is linked with Model. View links Model and Template together. When the user sends a request, it goes to the framework forming a URL that navigates to View. In View, we write busienss logic. Then, it will use the model and template objects to decide what data to be sent on template from model.

    MVT vs. MVC

  • Model = Model
  • Template = View
  • View = Controller
  • However, MVC needs a configuration for Controller where as Django does it automatically.

    Advantages

  • Develop Fast
  • Provide Bundled Components
  • Data Security
  • Scalability