

{"id":52406,"date":"2019-03-16T16:49:28","date_gmt":"2019-03-16T11:19:28","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=52406"},"modified":"2021-06-21T12:19:40","modified_gmt":"2021-06-21T06:49:40","slug":"django-architecture","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/django-architecture\/","title":{"rendered":"Django Architecture &#8211; 3 Major Components of MVC Pattern"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:1597,&quot;href&quot;:&quot;https:\\\/\\\/www.djangoproject.com\\\/foundation&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251002151913\\\/https:\\\/\\\/www.djangoproject.com\\\/foundation\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 12:43:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-12 13:52:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-16 16:51:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-23 14:58:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-29 16:25:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-03 05:37:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-06 07:26:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-09 10:05:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 10:47:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-16 09:48:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-20 22:29:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 15:28:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-30 03:22:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-02 08:38:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 17:15:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 11:28:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 15:26:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 00:23:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 10:28:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-02 15:51:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-06 03:46:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-09 17:40:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-15 08:17:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 16:22:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-28 06:19:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 08:40:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 10:50:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 14:19:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-12 16:46:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-16 02:51:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-19 06:15:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 11:29:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-25 15:31:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 09:11:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-03 14:28:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 10:49:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-12 14:16:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-15 16:32:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 02:10:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-22 13:43:25&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-25 21:13:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 11:28:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-02 14:02:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-06 10:08:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-09 14:53:59&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-09 14:53:59&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>In the previous article, we learned <strong><a href=\"https:\/\/data-flair.training\/blogs\/django-features\/\">the unique features of Django<\/a><\/strong>. Now, we will discuss about Django architecture based on MVC pattern.\u00a0We will be understanding the MVC pattern in more detail. Django\u00a0MVC architecture solves lots of problems which were there in the traditional approach for web development.<\/p>\n<p>We will understand the components of the MVC pattern that are Model, Views, and Controller in detail.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52430\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg\" alt=\"Django Architecture Components\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/install-django\/\">Learn to Install Django in Easy Steps<\/a><\/strong><\/p>\n<h2>MVC Pattern in Django Structure<\/h2>\n<p>For every website on the Internet, there are 3 main components or code partitions; Input Logic,\u00a0Business Logic, and\u00a0UI Logic.<\/p>\n<p>These partitions of code have specific tasks to achieve, the input logic is the dataset and how the data gets to organize in the database. It just takes that input and sends it to the database in the desired format. The Business logic is the main controller which handles the output from the server in the HTML or desired format. The UI Logic as the name suggests are the HTML, CSS and JavaScript pages.<\/p>\n<p>When the traditional approach was used for programming all this code was written in a single file, i.e., every piece of code increases the webpage size, which is downloaded and rendered by the browser. This was not a big problem back in the time, the webpages were largely static and websites and didn\u2019t contain much multimedia and large coding. Also, this architecture poses difficulty for developers while testing and maintaining the project as everything is inside one file.<\/p>\n<p>Now, time is changing and the websites are getting bigger and bigger while providing <a href=\"https:\/\/data-flair.training\/blogs\/cloud-computing-tutorial\/\"><strong>applications like cloud computing<\/strong> <\/a>and online artificial intelligence training, online development environments and what not, these projects are all implemented using MVC architecture.<\/p>\n<p>So, what is MVC? It is an acronym for Model View Controller. Don\u2019t worry we will learn every aspect of the MVC pattern and also relate it to Django.<\/p>\n<p>MVC pattern is a Product Development Architecture. It solves the traditional approach\u2019s drawback of code in one file, i.e., that MVC architecture has different files for different aspects of our web application\/ website.<\/p>\n<p>The MVC pattern has three components, namely Model, View, and Controller.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/MVC-Pattern.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52455\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/MVC-Pattern.jpg\" alt=\"MVC Pattern\" width=\"697\" height=\"460\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/MVC-Pattern.jpg 697w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/MVC-Pattern-150x99.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/MVC-Pattern-300x198.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/MVC-Pattern-520x343.jpg 520w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/a><\/p>\n<p>This difference between components helps the developer to focus on one aspect of the web-app and therefore, better code for one functionality with better testing, debugging and scalability.<\/p>\n<p>The Django architecture diagram below shows the working cycle of Django MVC architecture.<\/p>\n<h3>1. Model<\/h3>\n<p>The Model is the part of the web-app which acts as a mediator between the website interface and the database. In technical terms, it is the object which implements the logic for the application\u2019s data domain. There are times when the application may only take data in a particular dataset, and directly send it to the view (UI component) without needing any database then the dataset is considered as a model.<\/p>\n<p>Although today if we want any kind of website we need to have some sort of database as we must be requiring some user input even if we are creating a simple blog site.<\/p>\n<p>The Model is the component which contains Business Logic in Django architecture.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<p>When you sign up on any website you are actually sending information to the controller which then transfers it to the models which in turn applies business logic on it and stores in the database.<\/p>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52458\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram.jpg\" alt=\"Django Architecture Diagram\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Diagram-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/h3>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/create-django-project\/\">Explore how to create a project in Django.<\/a><\/strong><\/p>\n<h3>2. View<\/h3>\n<p>This component contains the UI logic in the Django architecture.<\/p>\n<p>View is actually the User Interface of the web-application and contains the parts like HTML, CSS and other frontend technologies. Generally, this UI creates from the Models component, i.e., the content comes from the Models component.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<p>When you click on any link or interact with the website components, the new webpages that website\u00a0generates is actually the specific views that stores and generates when we are interacting with the specific components.<\/p>\n<h3>3. Controller<\/h3>\n<p>The controller as the name suggests is the main control component. What that means is, the controller handles the user interaction and selects a view according to the model.<\/p>\n<p>The main task of the controller is to select a view component according to the user interaction and also applying the model component.<\/p>\n<p>This architecture has lots of advantages and that\u2019s why Django is also based on this architecture. It takes the same model to an advanced level.<\/p>\n<p><strong>For example:<\/strong><\/p>\n<p>When we combine the two previous examples, then we can very clearly see that the component which is actually selecting different views and transferring the data to the model\u2019s component is the controller.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/django-project-layout\/\">Understand the Django Project Layout &amp; Files Structure<\/a><\/strong><\/p>\n<h3>MTV Pattern<\/h3>\n<p>Django is mainly an MTV (Model-Template-View) framework. It uses the terminology Templates for Views and Views for Controller.<\/p>\n<p>Template relates to the View in the MVC pattern as it refers to the presentation layer that manages the presentation logic in the framework and essentially controls the content to display and how to display it for the user.<\/p>\n<p>Thus our <a href=\"https:\/\/data-flair.training\/blogs\/python-syntax-semantics\/\"><strong>Python code<\/strong><\/a> will be in views and models and HTML code will be in templates.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/mtv-instead-of-mvc-framework-in-django.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70164 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/mtv-instead-of-mvc-framework-in-django.png\" alt=\"mtv instead of mvc framework in django\" width=\"633\" height=\"551\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/mtv-instead-of-mvc-framework-in-django.png 633w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/mtv-instead-of-mvc-framework-in-django-150x131.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/mtv-instead-of-mvc-framework-in-django-300x261.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/mtv-instead-of-mvc-framework-in-django-520x453.png 520w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<h2>Benefits of Django Architecture<\/h2>\n<p>The Django Framework is based on this architecture and it actually communicates between all these three components without needing to write complex code. That\u2019s why Django is gaining popularity.<\/p>\n<p>This architecture in Django has various advantages like:<\/p>\n<h4>1. Rapid Development<\/h4>\n<p>Actually, this Django architecture that separates in different components makes it easy for multiple developers to work on different aspects of the same application simultaneously. That is also one of the\u00a0features of Django.<\/p>\n<h4>2. Loosely Coupled<\/h4>\n<p>This architecture of Django has different components which require each other at certain parts of the application, at every instant, that increases the security of the overall website. As the model file will now only save on our server rather than saving on the webpage.<\/p>\n<h4>3. Ease of Modification<\/h4>\n<p>This is an important aspect of development as there are different components in Django architecture. If there is a change in different components, we don\u2019t have to change it in other components.<\/p>\n<p>This is actually one of the special features of Django, as here it provides us with much more adaptability of our website than other frameworks.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/top-django-books\/\">Check out Django books for gaining Django Web Development knowledge.<\/a><\/strong><\/p>\n<h2>Summary<\/h2>\n<p>We covered the MVC pattern of Django architecture and explained the components; Model, View and Controller in detail. We also learned some advantages of <strong><a href=\"https:\/\/www.djangoproject.com\/foundation\/\">Django<\/a><\/strong> architecture.<\/p>\n<p>Furthermore, if you have come across with any queries or suggestions, you can simply enter in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article, we learned the unique features of Django. Now, we will discuss about Django architecture based on MVC pattern.\u00a0We will be understanding the MVC pattern in more detail. Django\u00a0MVC architecture solves&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":52430,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19149],"tags":[19147,19282,19281,19280,8981],"class_list":["post-52406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-django","tag-django-architecture","tag-django-architecture-benefits","tag-django-structure","tag-mvc-pattern","tag-mvt-pattern"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Django Architecture - 3 Major Components of MVC Pattern - DataFlair<\/title>\n<meta name=\"description\" content=\"Django architecture follows the MVC pattern which has three components; Model, View and Controller for web development which has several benefits.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/django-architecture\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Django Architecture - 3 Major Components of MVC Pattern - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Django architecture follows the MVC pattern which has three components; Model, View and Controller for web development which has several benefits.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/django-architecture\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-16T11:19:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-21T06:49:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Django Architecture - 3 Major Components of MVC Pattern - DataFlair","description":"Django architecture follows the MVC pattern which has three components; Model, View and Controller for web development which has several benefits.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/django-architecture\/","og_locale":"en_US","og_type":"article","og_title":"Django Architecture - 3 Major Components of MVC Pattern - DataFlair","og_description":"Django architecture follows the MVC pattern which has three components; Model, View and Controller for web development which has several benefits.","og_url":"https:\/\/data-flair.training\/blogs\/django-architecture\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-03-16T11:19:28+00:00","article_modified_time":"2021-06-21T06:49:40+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Django Architecture &#8211; 3 Major Components of MVC Pattern","datePublished":"2019-03-16T11:19:28+00:00","dateModified":"2021-06-21T06:49:40+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/"},"wordCount":1104,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg","keywords":["Django Architecture","Django Architecture Benefits","Django Structure","MVC Pattern","MVT Pattern"],"articleSection":["Django Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/django-architecture\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/","url":"https:\/\/data-flair.training\/blogs\/django-architecture\/","name":"Django Architecture - 3 Major Components of MVC Pattern - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg","datePublished":"2019-03-16T11:19:28+00:00","dateModified":"2021-06-21T06:49:40+00:00","description":"Django architecture follows the MVC pattern which has three components; Model, View and Controller for web development which has several benefits.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/django-architecture\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Architecture-Components.jpg","width":1200,"height":628,"caption":"Django Architecture Components"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/django-architecture\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Django Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/django\/"},{"@type":"ListItem","position":3,"name":"Django Architecture &#8211; 3 Major Components of MVC Pattern"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/52406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=52406"}],"version-history":[{"count":18,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/52406\/revisions"}],"predecessor-version":[{"id":70166,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/52406\/revisions\/70166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/52430"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=52406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=52406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=52406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}