Update views.py

changed mimetype to content_type