Replace hashcompat with hashlib

django.utils.hascompat is deprecated. Recommended library is now
Python's built-in hashlib.