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.
Documentation: https://django-sendfile2.readthedocs.io/
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.
Metadata
Release files for django-sendfile2 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_sendfile2-0.7.2.tar.gz | 27.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sendfile2-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.8 kB
Release files / django_sendfile2-0.7.2.tar.gz
| Download URL | django_sendfile2-0.7.2.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0939d52217d314b110d0b7b15ace5063d96aeb4980b7e0f94c020c2e25646f8
|
|
BLAKE2b-256 checksum How to use checksums |
6b8d18b884f5316329c914b6851f21fd1d88752627ab8da7dd0f0970cf2b58db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / django_sendfile2-0.7.2-py3-none-any.whl
| Download URL | django_sendfile2-0.7.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1b364c2e0b32de996bb8df30889681c723a7cae13c837c0256dd25f87074530
|
|
BLAKE2b-256 checksum How to use checksums |
13ba0eb6a4e5c989a16d65e05eb850ada2407fdc566874ebd35bda3438010028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|