Created
March 18, 2020 16:03
-
-
Save natanael-araujo/087cb2c66cd3c07ee66174011089810f to your computer and use it in GitHub Desktop.
send file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import FileResponse | |
def send_file(response): | |
arquivos_vpn = open('var/deploy/vpn.zip', 'rb') | |
response = FileResponse(arquivos_vpn) | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment