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
File details
Details for the file DjangoRangeMiddleware-1.0.1.tar.gz
.
File metadata
- Download URL: DjangoRangeMiddleware-1.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aa37d2601c38ae82575936a0fba974a10910b6074e3d85289b535c481f2fcc0 |
|
MD5 | 277d5d421cf2ef118d676f5b901cee86 |
|
BLAKE2b-256 | cca9d54a6ebf9cf245c79cda71e28244139c402350cdbbca3aff3c028f913976 |
File details
Details for the file DjangoRangeMiddleware-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: DjangoRangeMiddleware-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8557adcc8295cbbe23c71ec9a9ffd49bfd6f6341eb6f1fbb6eb2048448fd0468 |
|
MD5 | 273633f1e05a03875a0d581862f963a3 |
|
BLAKE2b-256 | a4d0b8e41ecc3a11d1cfae76a14a4a92e5d5c705ecbd2cbcd341b8c1dc94ca32 |