python3 django 下載文件

def download_file(self, request, *args, **kwargs): path = r'C:\Users\Administrator\Desktop\test.txt' file = open(path, 'rb') response = FileResponse(file) res
相關文章
相關標籤/搜索