Django MVT (Model-View-Template) architecture کی پیروی کرتا ہے — یہ کلاسیک MVC pattern کی اس کی تبدیلی ہے۔ یہ ایک ایپلیکیشن کو تین layers میں تقسیم کرتا ہے: Models (ڈیٹا)، Views (منطق)، اور Templates (پیشکش)۔ ان layers کو سمجھنا واضح کرتا ہے کہ ہر کوڈ کا ٹکڑا کہاں تعلق رکھتا ہے۔
تینوں layers
Model → the DATA layer: defines structure & talks to the database (the ORM)
View → the LOGIC layer: processes requests, fetches data, returns responses
Template → the PRESENTATION layer: HTML with placeholders for dynamic data
