Django ndjek arkitekturën MVT (Model-View-Template) — variacioni i tij i modelit klasik MVC. Ajo ndan një aplikacion në tre shtresa: Models (të dhënat), Views (logjika), dhe Templates (paraqitja). Kuptimi i shtresave sqaron se ku i përkasin secilit piece të kodit.
Tre shtresat
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
