Why? What makes Django better? (Genuinely curious.)
Rails does seem to have fallen out of favor over the last decade, while Django enjoyed a more steady level of popularity. I guess Python is a more popular language.
Rails had a higher level of initial hype though, so maybe more of that moved on to other things leaving it closer to Django that had a slower decline.
Both projects are solid mature choices though - the downside of that might be attracting enough new/younger devs. Choice comes down more to Ruby vs Python depending on which one your team knows better or if you need other libraries from that language.
Rails is much harder to containerize
Rails structure is extremely messy and you have to learn how to do it the rails way. Python in general is easier to hire for and is just better