Upgrade codebase to Django 1.7.