Closed ssebastianj closed 9 years ago
According to Django 1.6 documentation for HttpResponse and Outputting PDF example the parameter mimetype was deprecated and now it's recommended to use content_type instead.
mimetype
content_type
Current example:
class PDFFlavorView(LoginRequiredMixin, View): def get(self, request, *args, **kwargs): ... # create the response response = HttpResponse(mimetype='application/pdf') ...
Recommended:
class PDFFlavorView(LoginRequiredMixin, View): def get(self, request, *args, **kwargs): ... # create the response response = HttpResponse(content_type='application/pdf') ...
Nice book, BTW!! :smile:
Nice catch! :ship:
According to Django 1.6 documentation for HttpResponse and Outputting PDF example the parameter
mimetype
was deprecated and now it's recommended to usecontent_type
instead.Current example:
Recommended:
Nice book, BTW!! :smile: