Update views.py

Mimetype changed to content_type in django 1.7.
Nah, this goes far back, see https://github.com/django/django/commit/0afbca9c60