Djangoは**MVT(Model-View-Template)**アーキテクチャに従います — 古典的なMVCパターンのバリエーションです。アプリケーションを3つのレイヤーに分離します: Models(データ)、Views(ロジック)、Templates(プレゼンテーション)。レイヤーを理解することで、コードの各部分がどこに属するかが明確になります。
3つのレイヤー
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
