file.py 文件源码

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

项目:ws-backend-community 作者: lavalamp- 项目源码 文件源码
def __init__(self, file_contents=None, content_type=None, file_name=None, *args, **kwargs):
        super(WsFileResponse, self).__init__(*args, **kwargs)
        self.content = ContentFile(file_contents)
        self["Content-Disposition"] = "attachment; filename=%s" % (file_name,)
        self["Content-Type"] = content_type

    # Static Methods

    # Class Methods

    # Public Methods

    # Protected Methods

    # Private Methods

    # Properties

    # Representation and Comparison
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号