Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to send file in django response

from django.http import FileResponse
...
...
response = FileResponse(open('myfile.png', 'rb'))
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #send #file #django #response
ADD COMMENT
Topic
Name
2+5 =