Update views.py

Mimetype changed to content_type in django 1.7.