【问题标题】:Using Django-Storages with amazon S3 and https将 Django-Storages 与亚马逊 S3 和 https 一起使用
【发布时间】:2011-07-28 23:14:59
【问题描述】:

我们有一个使用 django-storages 上传到 AWS 的图像上传器。现在它通过 http 发送图像,但我们希望它使用 https。

谷歌搜索并没有帮助我找到配置 django-storages 的方法。有谁知道完成此任务的最佳方法,或者任何可以为我指明正确方向的文档。

【问题讨论】:

    标签: python django python-django-storages


    【解决方案1】:

    查看source,您似乎可以通过设置AWS_S3_SECURE_URLS = True 来启用HTTPS。

    【讨论】:

    • 有没有一种干净的方法可以根据请求的协议进行切换?
    • @digitalPBK from boto.s3.connection import ProtocolIndependentOrdinaryCallingFormat AWS_S3_CALLING_FORMAT = ProtocolIndependentOrdinaryCallingFormat()
    猜你喜欢
    • 2017-07-18
    • 2016-02-12
    • 1970-01-01
    • 2012-05-01
    • 2018-02-10
    • 1970-01-01
    • 2013-10-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多