Update views.py
Merge pull request #8 from matclayton/patch-1

Fix mimetype -> content_type for Django 1.7