Hacker News new | ask | show | jobs
by corvus-cornix 1651 days ago
Learn FastAPI instead (for new projects where you don't want the template-based MVC). Django is showing its age and comes with some unpalatable design decisions, particularly in its active record ORM. Django's most useful feature is arguably automated DB migrations, but this can also be achieved with SQLAlchemy+Alembic
1 comments

I've dabbled with FastAPI a few times when starting new projects, but the lack of a high-quality ORM always had me switch right back to Django after a few hours. Sure, you can use SQLAlchemy, but it's a miserable experience compared to the Django ORM + admin interface.

Sure, Django is mostly designed around server-side rendering of full pages, but with DRF you can build REST APIs perfectly fine, and there's also http://django-ninja.rest-framework.com/ which I think is more or less similar to FastAPI in the way you write code with it.