Initial commit, taken from Django 1.5.8.