Response content type is defined with content_type.

HttpResponse argument mimetype is no longer valid. To set the content_type of the response you must use content_type.