files.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:sga-lti 作者: mitodl 项目源码 文件源码
def serve_zip_file(submissions, zipname="zipfile"):
    """
    Takes a list of submissions and generates a streaming response from them
    """
    resp = StreamingHttpResponse(submissions_zip_generator(submissions), content_type="application/zip")
    resp["Content-Disposition"] = "attachment; filename={zipname}.zip".format(zipname=zipname)
    return resp
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号