Removed mimetype from response for Django 1.7 compatibility. See https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-1-7