3 ms·
"The view CAN do the work of determining what will be shown" 1) In Django the controller is called the view and the view is called the template, same principle
by jamiequint 19y ago
"The view CAN do the work of determining what will be shown"
1) In Django the controller is called the view and the view is called the template, same principle but unless you want to get confused you should think of it as MTV == MVC (if you want to equate the two, Django seems to be perfectly happy making up its own interpretation of MVC for no apparent reason). Really the controller (in the MVC sense) is doing the work here.
- mrtron 19y agoSorry I think its just the wording that is confusing here. The controller is doing the work to determine what will be shown, yes. I meant once the controller determines which view should be used, the view then can manage the specific data being shown. Django does separate the view into a 'view' and a 'template'. One does your work, and the other does the displaying.