Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc. Current version 0.7.2, maintenance mode.
pip install django-sendfile2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage to serve a file with x-sendfile header.
Use 'from sendfile import sendfile'
Ensure filepath starts with '/' and is within the SENDFILE_ROOT setting
Use 'content_type' instead of 'mimetype'
Use a production backend like 'sendfile.backends.xsendfile' for Apache or 'sendfile.backends.nginx' for nginx
No dependency data recorded yet.