Upgrade to Django 1.6.5 to fix bug 1012898