これは私のURLです
url(r'download/$', views.DownloadView.serve_pdf, name="pdfdata-ddl" )
これが私の見解です
class DownloadView():
def serve_pdf(request):
#pdf_data = magically_create_pdf()
response = HttpResponse(mimetype='application/pdf')
response['Content-Disposition'] = 'attachment; filename="/test/angular.pdf"'
return response
エラーはこれです
unbound method serve_pdf() must be called with DownloadView instance as first argument (got WSGIRequest instance instead)