[email protected] 1800-212-2022

Which architectural pattern does Django follow?

Django follows MVC (model-view-controller) architecture pattern, written in Python programming language designed for creating easy and rapid development. Django contains four layers:

- Models Layer that describes the database schema and data structure.
- Views Layer is UI responsible for controlling what a user sees, retrieving data from appropriate models and executing any calculation made to the data. It finally sends executed data to the template.
- Templates Layer is responsible for determining how a user sees. Also, it is responsible for describing how the data is received from the views. Should the data received be changed or formatted for display on the web page?
- Controller Layer controls the requests and responses, set-up database connections and loading add-ons. It also specifies the Django framework and URL parsing.

Was this answer helpful? #2 #0

Submit Query

Please fill in the form below and we will contact you within 24 hours.