django changed the `mimetype` to `response_type`, works with all recent Django versions