Replaced deprecated HttpResponse mimetype argument for Django>=1.5.