Django Range Middleware
Project description
DjangoRangeMiddleware
A Django Middleware Service
Implements HTTP bytes-range requests
When to use?
If you have ever served video file with django you will see that you can't rewind/forward the video, and thats because you don't have bytes-range requests implemented.So if you want to solve this problem you have to implement bytes-range requests. And Using this package you can easily do it :)
Bytes range:
Byte-range requests occur when a client asks the server for only a portion of the requested file. The purpose of this is essentially to conserve bandwidth usage by avoiding the need to download a complete file when all that is required is a small section
Installation
-
install the package using pip
C:/User> pip install DjangoRangeMiddleware
-
Add this to middleware
settings.py
MIDDLEWARE = [ '.........', 'DjangoRangeMiddleware.middleware.RangesMiddleware', ]
And thats it.You're Done.Enjoy ;)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for DjangoRangeMiddleware-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7d83c9ebeafa0b3e96a5cee06c0789454adb9c12344f6da54ddd0fa71375c3 |
|
MD5 | 109bece28759d79a7683ab945287d8ec |
|
BLAKE2b-256 | 283043f7c82243f6ee65507419022431ea73ab444a1ffc0ef72896193dfe9bb9 |
Hashes for DjangoRangeMiddleware-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672fb7426c578ddbe5bea9dae47727fa0d97cd3869e3723686cb67ce8f96f5e4 |
|
MD5 | 50ba49c51449080079974d202a8e0f90 |
|
BLAKE2b-256 | d143b3e1c044b97cc63916dd2a18bc64fe62bd9107befdf6e6a858082c4d89fd |