Both are pretty similar to one another, basically filling the same niche, just with different languages. So if you're more interested in Python, then by learning Django you probably won't be missing out on much w/ Rails (and given their similarities, learning one makes it easier to learn the other).