Search results

  1. E

    io.UnsupportedOperation on FileResponse (Django)

    I have something that works. Thanks for the hint. myCanvas = Canvas("temp.pdf", pagesize=letter) ... return FileResponse(open('temp.pdf', 'rb'), as_attachment=False, filename="filename.pdf")
  2. E

    io.UnsupportedOperation on FileResponse (Django)

    Hi, I have the exact same problem. Please, would mine explaining? Where do you create and pass the temporary pdf file? Thank you!
Top