diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/request-response.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 77298b5bbf..aca839469b 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -1050,3 +1050,5 @@ otherwise it streams the file out in small chunks. >>> from django.http import FileResponse >>> response = FileResponse(open('myfile.png', 'rb')) + +The file will be closed automatically, so don't open it with a context manager. |
