Answer the question
In order to leave comments, you need to log in
MVC components in Flask and Django?
MVC - Model, Views, Controller.
I do not quite understand what these concepts correspond to in the terminology of Flask, Django.
M - Model (everything is clear here)
V - is the view in flask + template system?
C is also a view?
Answer the question
In order to leave comments, you need to log in
MVC is an abstract concept that stands for the separation of logic. What you call it is not the point. The main thing is that work with logic, data and appearance should be separated. Those. if you have three classes in one file, and with one you access data, with another you access appearance, and with the third you tie it all together, then you have MVC too.
In django, the logic of the program (controller from MVC) is described in view, work with data (model from MVC) occurs through model, and the appearance (view from MVC) is described in template. In flask, you need to think for yourself what to put in which file and how to make the file structure.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question