Django inafuata usanifu wa MVT (Model-View-Template) — toleo lake la mfumo wa kawaida wa MVC. Inatenganisha programu katika tabaka tatu: Models (data), Views (mantiki), na Templates (uwasilishaji). Kuelewa tabaka kunafafanua mahali kila kipande cha code kinapokaa.
Tabaka tatu
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
