Skip to main content

Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.

Project description

https://travis-ci.org/moggers87/django-sendfile2.svg?branch=master

This is a wrapper around web-server specific methods for sending files to web clients. This is useful when Django needs to check permissions associated files, but does not want to serve the actual bytes of the file itself. i.e. as serving large files is not what Django is made for.

Note this should not be used for regular file serving (e.g. css etc), only for cases where you need Django to do some work before serving the actual file.

Supported Python Versions

Python 3.5, 3.6. 3.7, and 3.8 are currently supported by this library.

Supported Django Versions

Django 2.1, 2.2, and 3.0 are currently supported by this library.

Fork

This project is a fork of django-sendfile. The original project appears mostly dead and has a number of outstanding bugs (especially with Python 3).

Funding

If you have found django-sendfile2 to be useful and would like to see its continued development, please consider buying me a coffee.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sendfile2-0.6.0.tar.gz (24.0 kB view details)

Uploaded Source

File details

Details for the file django-sendfile2-0.6.0.tar.gz.

File metadata

  • Download URL: django-sendfile2-0.6.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for django-sendfile2-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7f850040ddc29c9c42192ed85b915465a3ed7cced916c4fafdd5eda057dd06ec
MD5 6a187b4ea61d3b4c399e0cd921406871
BLAKE2b-256 2024f76d8eb40732ea91f5aa2857f76ce48f6d4e2ade2d1f486fd87f73c30e32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page