Python 如何让django compress和s3cmd协同工作
在作业中,我们使用s3cmd将静态文件发送到S3。工作流程是:Python 如何让django compress和s3cmd协同工作,python,django,django-templates,django-compressor,Python,Django,Django Templates,Django Compressor,在作业中,我们使用s3cmd将静态文件发送到S3。工作流程是: 1) collectstatic to a local folder 2) s3cmd into that folder to our S3 bucket 1) compress to STATIC_ROOT folder 2) collectstatic (images, fonts etc.) 3) s3cmd to the S3 bucket 我们正在尝试使用django compress,因此现在我们的工作流程是: 1)
1) collectstatic to a local folder
2) s3cmd into that folder to our S3 bucket
1) compress to STATIC_ROOT folder
2) collectstatic (images, fonts etc.)
3) s3cmd to the S3 bucket
我们正在尝试使用django compress,因此现在我们的工作流程是:
1) collectstatic to a local folder
2) s3cmd into that folder to our S3 bucket
1) compress to STATIC_ROOT folder
2) collectstatic (images, fonts etc.)
3) s3cmd to the S3 bucket
我们没有按照compressor的建议使用django存储的原因是我们在CSS方面遇到了一些问题。令人惊讶的是,一些css规则在压缩文件中丢失了,不管是什么
我们使用什么样的压缩解决方案
OfflineGenerationError: You have offline compression enabled but key
"d345e38725a478c7db70d8e23d4c771b" is missing from offline manifest.
You may need to run "python manage.py compress".
可以找到完整的回溯。有人知道这里发生了什么吗?我们非常欢迎改进压缩和上传工作流程的建议