Forgot to import hashlib.

In other news, this will no longer be necessary in 1.6:

<https://docs.djangoproject.com/en/dev/topics/cache/#django.core.cache.utils.make_template_fragment_key>