Logging Binary File Downloads in Django
December 17, 2009
I had a need to download binary files from a Django website and to log the fact that they had been downloaded, including which logged in user did the download.
This example also shows the usage of the content-disposition header to set the default filename of the downloaded file. This …