Update views.py

django.utils.hashcompat is deprecated; use hashlib instead