Search results

  1. D

    io.UnsupportedOperation on FileResponse (Django)

    Thanks for idea ... based on someone else's post the issue is how the response stream is handled by some underlining process. Running under VScode a stream made by io.BytesIO seems to by handled fine. When running under OpenLiteSpeed, there is some process that expects the stream to be a file...
  2. D

    io.UnsupportedOperation on FileResponse (Django)

    I have a solution that works in development (VScode, Django v5.1, Python 3.12.5) returning a pdf file created in a buffer using io.BytesIO then return a page response using FileResponse. The following is part of the code that works in the development environment: buffer = io.BytesIO()...
Top