mimetype argument is deprecated in Django 1.6 and removed in 1.7