Use hashlib instead of deprecated Django library

django.utils.hashcompat has been deprecated for some time, and is scheduled to be removed in Django 1.6, soon to be released. The Python built-in hashlib is now the recommended option.