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

Documentation Status

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.9, 3.10, 3.11, 3.12, and 3.13 are currently supported by this library.

Supported Django Versions

Django 4.2, 5.0, 5.1, and 5.2 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.7.2.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

django_sendfile2-0.7.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file django_sendfile2-0.7.2.tar.gz.

File metadata

  • Download URL: django_sendfile2-0.7.2.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for django_sendfile2-0.7.2.tar.gz
Algorithm Hash digest
SHA256 d0939d52217d314b110d0b7b15ace5063d96aeb4980b7e0f94c020c2e25646f8
MD5 84082eaa0df1e5751037d916ee567a71
BLAKE2b-256 6b8d18b884f5316329c914b6851f21fd1d88752627ab8da7dd0f0970cf2b58db

See more details on using hashes here.

File details

Details for the file django_sendfile2-0.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sendfile2-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b364c2e0b32de996bb8df30889681c723a7cae13c837c0256dd25f87074530
MD5 682fd17025a5f113019a48f586361e0b
BLAKE2b-256 13ba0eb6a4e5c989a16d65e05eb850ada2407fdc566874ebd35bda3438010028

See more details on using hashes here.

Supported by

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