DEV Community

Discussion on: 5 Reasons to use Django, the Python web framework

Collapse
 
adwaithrajesh profile image
Adwaith Rajesh

If I want to make a REST API, just an api no frontend which is better django rest framework or flask restful

Collapse
 
fabienschlegel profile image
Fabien Schlegel

Flask is a "micro framework", you have to add most of the features by yourself.

For a public REST API, with not too much endpoints, no sessions management, use Flask restful.

If you need : sessions, users authentification, database ORM, security like CSRF, minimal requirements for passwords, admin UI and many of others things already included, Django and DRF is the right choice.