Hacker News new | past | comments | ask | show | jobs | submit login

I share OP's general statement. I've been using Flask and Django on and off for near a decade.

When deciding between Flask and Django, I look at the following requirements:

User accounts

Object Relational Manager

Database Migrations

User registration/social authentication

Admin Site

As a general rule of thumb if my project is going to need 3 or more of these things I just go with Django.

You CAN do all of that with Flask, but you end up wiring together a bunch of third party dependencies just to end up with what Django would have provided you out of the box.




FastAPI doesn't (directly) help with most of these either, so that's really a Flask vs. Django comparison rather than Flask vs. FastAPI.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: