Passing mimetype to HttpResponse is deprecated and removed in Django 1.7 as per https://github.com/django/django/commit/8eadbc5a03d06f5bfedfa3fad35ad0801d2ab6ff (https://github.com/caffeinehit/django-oauth2-provider/blob/master/provider/views.py#L491)