Replaces Django Hashcompat with Hashlib

This fixes a DeprecationWarning in Django 1.5, which recommends
no longer using django.utils.hashcompat.