Django for Designers/Basic views: Difference between revisions

Content added Content deleted
imported>Aldeka
imported>Aldeka
Line 17: Line 17:
===M-V-C separation concept===
===M-V-C separation concept===


[[File:mtv-diagram.png]]
[[File:mtv-diagram.png|400px]]


When you write a Django app, your code is organized in a fashion reminiscent of a well-known design pattern known as MVC, short for ''model, view, controller''. Django's precise organization methodology is based on ''models'', ''views'', and ''templates''.
When you write a Django app, your code is organized in a fashion reminiscent of a well-known design pattern known as MVC, short for ''model, view, controller''. Django's precise organization methodology is based on ''models'', ''views'', and ''templates''.