Django MVT (Model-View-Template) आर्किटेक्चर का अनुसरण करता है — यह क्लासिक MVC पैटर्न की इसकी भिन्नता है। यह एक एप्लिकेशन को तीन परतों में विभाजित करता है: Models (डेटा), Views (लॉजिक), और Templates (प्रस्तुतिकरण)। परतों को समझने से स्पष्ट होता है कि प्रत्येक कोड का टुकड़ा कहाँ रहता है।
तीन परतें
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
