I am looking for someone to create a script that will retrieve a docx file (that’s stored in a specific local file path on my server) and download the file onto the user’s computer. The file should only be downloadable by a user that is logged into the website. When the download button is clicked, a filepath should be passed to a python function that will result in the file being downloaded. It’s important that the file can only be accessed if the user is logged in, and not available to the public. Our website uses the “@login_required()” python function in views.py to achieve this.
Digital Ocean’s Django on Ubuntu14.04