As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center提供指导。




7年前关闭。




有人可以解释一下Django和Model View Controller模式之间的区别在哪里吗?

从功能上讲,我们可以从这些差异中得到什么?即,将Django与Ruby on Rails进行比较的不同之处是什么?

最佳答案

根据Django Book,Django遵循MVC模式足够紧密,可以称为MVC框架。
Django之所以称为MTV框架,是因为 Controller 由框架本身处理,并且大多数兴奋都发生在模型,模板和 View 中。
您可以在此处阅读有关MTV / MVC的更多信息:
The MTV (or MVC) Development Pattern

10-02 03:58
查看更多