Answers for "how to send file in django response"

0

how to send file in django response

from django.http import FileResponse
...
...
response = FileResponse(open('myfile.png', 'rb'))
Posted by: Guest on July-17-2021

Code answers related to "how to send file in django response"

Python Answers by Framework

Browse Popular Code Answers by Language