Update views.py

Mimetype changed to content_type in django 1.7.
You are very right, I stand corrected.