I find the ORM API in django to be very clean, especially when combined with custom querysets. It also has great postgres support (https://docs.djangoproject.com/en/4.0/ref/contrib/postgres/).
The migration framework just works, I can't really compare it to rails because I haven't used rails in a long time.
DRF seems much more fully featured than rails-api, it comes with a browsable API and OpenAPI integration.