Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is Flask an MVC or MTV? [closed]

and sorry for that question

but it seems that i dont get what is really Flask, it comes with a Template engine like the one used in django, so is it an MTV?

and each time i see something related to MVC and Python, there is Turbogears and Django, so how about Flask?

like image 722
Abdelouahab Avatar asked Nov 09 '11 14:11

Abdelouahab


People also ask

Is Flask an MVC model?

The Flask is a framework that uses Python language with easy to understand code writing. But the Flask framework still doesn't use the MVC method, so files and codes are not regular.

Is Flask the controller in MVC?

Flask is actually not an MVC framework.

Is MTV the same as MVC?

The Model Template View (MTV) is slightly different from the MVC.

Does Django use MVC or MVT?

Django is a Python web framework. And like most modern framework, Django supports the MVC pattern.


1 Answers

As the homepage puts it, it's a microframework. It's not an MVC (for one, there's no model in flask -- however, you can combine it with something like SQLAlchemy), and I'm not sure what you mean by MTV. It's basically a wrapper around werkzeug which is a wrapper around pure WSGI. A wrapper with templating abilities.

Edit: Also, what does it matter what the terminology is? Just browse the docs, see what it can do and figure out if it's good for you or not :)

like image 165
Felix Avatar answered Sep 17 '22 04:09

Felix