Fix deprecation warnings with Django 1.5

Fix the following deprecation warning occuring with Django 1.5:

> django/utils/hashcompat.py:9: 
> DeprecationWarning: django.utils.hashcompat is deprecated; use hashlib instead