-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did this module ever close a file? #155
Comments
@filwaline that's an interesting question. Do you have a way to fix this in mind? |
use
https://github.com/jazzband/django-downloadview/blob/master/django_downloadview/views/base.py#L144 code not tested, but it should work |
Do you mind creating a pull-request with your fix? |
Maybe later |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DownloadMixin need a File object to serve, and open file in
get_file
method, but I never found aclose
call(by global text search).Did you close file somewhere? Or Using context manager
with
?https://docs.djangoproject.com/en/2.2/topics/files/#the-file-object
If open too many file and never close them, IOError will raise.
The text was updated successfully, but these errors were encountered: