Django rest framework do I need to close file before the response

前端 未结 0 1184
情深已故
情深已故 2021-01-15 06:32

I have an endpoint returning a FileResponse. When I use a code like the following I get an error \'read of closed file\' The code looks like this:

    @action         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题