Replaced 'mimetype' with 'content_type', 'mimetype' is deprecated in django 1.7