Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This article is a few years old but it compares both really well:

https://adamj.eu/tech/2019/04/03/django-versus-flask-with-si...

Flask works for simple projects but as your needs grow, the built-in and extensive Django ecosystem will have you covered. And as seen above, Django in its simplest form is no more complex.

Some people really don't like the Django ORM, so in this case you might avoid Django altogether. It's possible to use Django without its data layer but it's a big part of its value.

Also if you are building a pure API project, FastAPI is worth checking out for a streamlined process. Django Rest Framework works too, but is an extension.



I do think leaning on the Django ORM for so many years has hurt my ability to write SQL on its own, but it's just about the only ORM thats ever clicked for me in that way.




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

Search: