CMD + K

django-ranged-response

Community

Adds support for HTTP_RANGE requests in Django.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::django-ranged-response

Usage Tracking

0.2.0
1 / 8 versions selected
Total downloads: 0

Description

If you're in the situation that you have an authenticated Django view that returns files for download, you may have noticed that Safari 9.x doesn't play audio files properly when returning audio-files. The reason is that Safari sends a HTTP_RANGE request header and expects a proper Content-Range response header in return. The original suggested fix applies the code to Django's static view. This is a packaged version of that fix, but uses a modified FileResponse, instead of applying it to Django's static view.

About

Summary

Adds support for HTTP_RANGE requests in Django.

Information Last Updated

Apr 22, 2025 at 14:58

License

MIT

Total Downloads

25.2K

Platforms

noarch Version: 0.2.0