Leanann Django ailtireacht MVT (Model-View-Template) — a leagan féin ar an patrún MVC clasaiceach. Scarann sé feidhmchlár ina thrí shraith: Models (sonraí), Views (loighic), agus Templates (cur i láthair). Nuair a thuigeann tú na sraitheanna, soiléireoidh sé go bhfuil a fhios agat cá bhfuil gach píosa cóid ann.
An trí shraith
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
