Being in a similar position, I wanted to post but your post is spot on.
ML and DS have basically lifted Python and by association Django quite a lot...
Re:Django 2.2
by jamestimmins on Monday April 01, 2019 @11:22PM
(#19550785)
Have you found a decent Rails counterpart to Django Rest Framework?
As an aside, I love seeing how different frameworks implement the same features.
Re:Django 2.2
by Godel_unicode on Monday April 01, 2019 @12:48PM
(#19545285)
> better static file handling
Don't you just let nginx/CDN handle these?
I think he’s referring to the app being aware of static files so it can resolve their URLs, etc (without having to hardcode paths).
You develop by just assuming all your static files would be served by Django itself (and they will - using the dev server) and then change the project’s configuration to use a CDN or S3 (using a library - which will automatically collect & upload your files too) with no change to the underlying code.
I think they meant the Sprockets/Asset Pipeline or whatever the new Webpack-based solution is.
Re:Django 2.2
by true_religion on Monday April 01, 2019 @08:24PM
(#19549799)
Asset Pipelining is a dingo plug-in, but a built in for Rails.
- cleaner internal APIs, models, methods
- a lot more stuff that "just works" out of the box where you would need a third-party package in Django (e.g. RoR gives you different settings for development/staging/production out of the box)
- better static file handling
- third-party packages tend to be a bit more mature and stable in the RoR world
However, using Django gives you easy access to the rest of the Python ecosystem, including all the data science and ML tooling. And that trade is worth it. So if you are starting from scratch today, i'd go with Django.