Skip to main content

DjangoRangeMiddleware

Contributors

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

  1. install the package using pip

    C:/User> pip install DjangoRangeMiddleware
    
  2. Add this to middleware settings.py

    MIDDLEWARE = [
        '.........',
        'DjangoRangeMiddleware.middleware.RangesMiddleware',
    ]
    
  • And thats it.You're Done.Enjoy ;)

Metadata

Release files for DjangoRangeMiddleware 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DjangoRangeMiddleware 1.0.1
File Size Uploaded
DjangoRangeMiddleware-1.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DjangoRangeMiddleware 1.0.1
File Interpreter ABI Platform
DjangoRangeMiddleware-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / DjangoRangeMiddleware-1.0.1.tar.gz

Download URL DjangoRangeMiddleware-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6aa37d2601c38ae82575936a0fba974a10910b6074e3d85289b535c481f2fcc0
BLAKE2b-256 checksum
How to use checksums
cca9d54a6ebf9cf245c79cda71e28244139c402350cdbbca3aff3c028f913976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / DjangoRangeMiddleware-1.0.1-py3-none-any.whl

Download URL DjangoRangeMiddleware-1.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8557adcc8295cbbe23c71ec9a9ffd49bfd6f6341eb6f1fbb6eb2048448fd0468
BLAKE2b-256 checksum
How to use checksums
a4d0b8e41ecc3a11d1cfae76a14a4a92e5d5c705ecbd2cbcd341b8c1dc94ca32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page