Skip to content
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

Remove django-sendfile2 and use the builtin FileResponse instead #1793

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

niklasmohrin
Copy link
Member

Supersedes #1791

We don't even remember why we used sendfile in the first place, it claims to be optimized for sending large files and has specialized backends, but we only send smallish grade documents and use the "simple" backend anyways. Content type detection works with FileResponse too, so there really seems to be no reason to have the dependency anymore.

We don't even remember why we used `sendfile` in the first place, it
claims to be optimized for sending large files and has specialized
backends, but we only send smallish grade documents and use the "simple"
backend anyways. Content type detection works with `FileResponse` too,
so there really seems to be no reason to have the dependency anymore.
@niklasmohrin niklasmohrin requested a review from janno42 August 15, 2022 18:14
@niklasmohrin niklasmohrin merged commit 7ebb22d into e-valuation:main Aug 22, 2022
@niklasmohrin niklasmohrin deleted the dontsendfileanymore branch August 22, 2022 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants