【问题标题】:collecstatic modified files using s3boto and django-storages使用 s3boto 和 django-storages 收集修改的文件
【发布时间】:2012-01-09 11:49:56
【问题描述】:

我检查了以下问题:Django StaticFiles and Amazon S3: How to detect modified files? 和其他问题,但我仍然无法仅对修改后的文件运行 collectstatic

除了不接受修改之外,它还能正确同步。

我添加了:AWS_PRELOAD_METADATA = True 并在启用此设置的情况下完全运行 collectstatic

【问题讨论】:

    标签: python django amazon-s3


    【解决方案1】:

    原来我错过了python-dateutil,不知何故并没有将django-storages 作为依赖项。确保您已安装 python-dateutil 的 1.1.5 版,否则您将收到以下错误:

    iter() returned non-iterator of type ‘_timelex’
    

    另请参阅我关于此问题的博文以及一般的 django - s3bot 设置here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-27
      • 2013-06-05
      • 2015-05-01
      • 2016-12-28
      • 2015-06-05
      • 2020-01-19
      • 2013-07-04
      • 2020-08-12
      相关资源
      最近更新 更多