All
一直没有接触过 python 和 Django,现在在搭建 openstack,遇到如下错误,google 后没找到方案,看django_compressor看到可以配置 COMPRESS_OFFLINE 为 False,我在 settings.py 配置后还是报错。
OfflineGenerationError: You have offline compression enabled but key "3ddd89d27fa2e162d4efd30c103a072b" is missing from offline manifest. You may need to run "python manage.py compress"
我已经执行过 python manage.py compress
但是重启 apache 后,还是报错,我也查看过 manifest.json,的确没有这个 key
{
"b035e11295a8c5428002ed96c433a992": "<link rel=\"stylesheet\" href=\"/static/dashboard/css/d272fede7fb7.css\" type=\"text/css\" media=\"screen\" />",
"31e68b3a0f4dc1c7b2874c30d74a6c5f": "<script type=\"text/javascript\" src=\"/static/dashboard/js/967e5ade6890.js\"></script>",
"b9d8a3fc565b6383fb75df7ea4ec9dcc": "<script type=\"text/javascript\" src=\"/static/dashboard/js/f8791faeb8f8.js\"></script>"
}
然后我在项目根目录下grep -r -i 3ddd89d27fa2e162d4efd30c103a072b .
,但是没有找到这包含这个 key 的文件。
求教一下该如何处理,谢谢?
python-china 的link