Fixed #23866 -- Harmonized refs to Django documentation from code

Seems that people running on a branch like `stable/1.7.x` would get links to the dev docs. This seems fine.