Replaces mimetype= with content_type= in calls to HttpResponse, updated for Django 1.6+