Rails itself is broken up into smaller packages, so you can only load parts of Rails if you want. Very few apps actually do. (and that's only like 8 of the 80)
I work on a abnormally large Django codebase. It has 30 dependencies on the requirements.txt file. I've worked on other Django codebases and they usually have about 15. Python has a big standard library which cuts down on dependencies. Not that Django > Rails. Just different.