[英]collecstatic modified files using s3boto and django-storages
I checked out the following question: Django StaticFiles and Amazon S3: How to detect modified files? 我检查了以下问题: Django StaticFiles和Amazon S3:如何检测已修改的文件? and others but i'm still not able to run collectstatic
on only modified files. 和其他人,但我仍然无法仅对修改后的文件运行collectstatic
。
Besides not picking up on modifications, it syncs properly. 除了不修改外,它还可以正确同步。
I added: AWS_PRELOAD_METADATA = True
and ran collectstatic
completely with this setting turned on. 我添加了: AWS_PRELOAD_METADATA = True
并且在启用此设置的情况下完全运行了collectstatic
。
It turns out I was missing python-dateutil
, which somehow didn't make into django-storages
as a dependency. 事实证明,我缺少了python-dateutil
,它并没有以某种方式成为django-storages
python-dateutil
的依赖。 Make sure you have version 1.1.5 of python-dateutil
installed or you will get the following error: 确保已安装python-dateutil
1.1.5版本,否则会出现以下错误:
iter() returned non-iterator of type ‘_timelex’
See also my blogpost about this problem and the django - s3bot setup in general here . 另请参见我的有关这个问题,Django的博客帖子- s3bot设置一般在这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.