Having Django serve downloadable files

后端 未结 15 1812
野的像风
野的像风 2020-11-22 05:46

I want users on the site to be able to download files whose paths are obscured so they cannot be directly downloaded.

For instance, I\'d like the URL to be something

15条回答
  •  执念已碎
    2020-11-22 06:25

    Try: https://pypi.python.org/pypi/django-sendfile/

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

提交回复
热议问题