Use keyword content_type instead of mimetype,
which is deprecated in Django 1.5.