Django podąża za architekturą MVT (Model-View-Template) — swoją wariacją klasycznego wzorca MVC. Rozdziela aplikację na trzy warstwy: Models (dane), Views (logika) i Templates (prezentacja). Zrozumienie warstw wyjaśnia, gdzie każdy fragment kodu powinien się znajdować.
Trzy warstwy
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
