简体   繁体   English

使用s3boto和django-storages的collecstatic修改文件

[英]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.

相关问题 Django Storages使用s3boto忽略MEDIA_URL - Django Storages using s3boto ignoring MEDIA_URL 为什么带有带有S3Boto后端的django-storages的default_storate.exists()会导致带有大型S3存储桶的内存错误? - Why does default_storate.exists() with django-storages with S3Boto backend cause a memory error with a large S3 bucket? 为什么 S3(与 boto 和 django-storages 一起使用)甚至为公共文件提供签名 url? - Why does S3 (using with boto and django-storages) give signed url even for public files? django-storages和boto配置不正确 - django-storages and boto ImproperlyConfigured 使用django-storages boto3将文件动态上传到不同的s3存储桶中 - Upload files dynamically into different s3 buckets with django-storages boto3 将Cloudfront与Django S3Boto配合使用 - Using Cloudfront with Django S3Boto 使用django-storages / boto在本地收集静态作品,但不在Heroku上收集 - Collect static works locally but no on Heroku using django-storages/boto SignatureDoesNotMatch - Boto3 Django 存储 - SignatureDoesNotMatch - Boto3 Django-storages 不一致的 SignatureDoesNotMatch Amazon S3 与 django-pipeline、s3boto 和存储 - Inconsistent SignatureDoesNotMatch Amazon S3 with django-pipeline, s3boto and storages ImportError:没有名为自定义存储的模块 - django-storages boto - ImportError: No module named custom storages - django-storages boto
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM