DEV Community

Discussion on: What is the best Framework for Creating RESTful API: Django vs Flask

Collapse
 
svinci profile image
Sebastian G. Vinci

I don't think of Flask as a framework, but rather a library. It is lightweight.

Django, on the other side, is a full fledged framework with a whole lot of features. We are talking ORM, server side rendering, REST and Web features.

Flask will not solve any issue regarding MongoDB, but you can get a library there and work with that. Django, AFAIK, does not work well with Mongo.

I would stick with Flask if you just want a REST API, without UI. And I also recommend connexion.