I don't think Django was inspired by Rails, but I could be wrong. CakePHP definitely was. In fact, I learned CakePHP by watching Ruby on Rails screencasts because I couldn't get RoR installed on a VPS way back when, while CakePHP installed effortlessly, yet didn't have many good tutorials.
Which means what? I'm pretty sure they didn't know or care about one another when they were used privately. I'm not arguing which one was more influential.