NodeJS or Django for machinelearning and API?

I am developing a project in which FrontEnd is Flutter app and I want to make a backend with machine learning and Mongo DB. I know Django and Nodejs both. I tried Django REST Framework but didnt like it at all as I am used to make APIs in NodeJS as my database is also MongoDB. I consider NodeJS to be good for making REST APIs and Python good for machine learning. Spawning child processes is not a great idea please suggest one language that can I use for my project backend.