can someone explain me this django views part

前端 未结 0 1242
独厮守ぢ
独厮守ぢ 2021-02-07 11:20

def download(request , path):

file_path = os.path.join(settings.MEDIA_ROOT , path)
if os.path.exists(file_path):
    with open(file_path , \'rb\') as file:
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题