Changed HttpResponse deprecated mimetype argument to content_type