mimitype is deprecated in (django 1.6). I've replaced it with content_type.