gpt4 book ai didi

django - Whitenoise.storage.MissingFileError : The JS file 'drf-yasg\redoc\redoc.min.js' references a file which could not be found

转载 作者:行者123 更新时间:2023-12-03 08:13:09 24 4
gpt4 key购买 nike

我尝试在正在使用 Django/Django REST Framework 的 API 项目上收集静态文件,但在控制台上收到此错误。错误的原因可能是什么?

加注已处理Whitenoise.storage.MissingFileError:无法使用 找到文件“drf-yasg/redoc/redoc.standalone.js.map”。

JS 文件“drf-yasg\redoc\redoc.min.js”引用了一个无法找到的文件:drf-yasg/redoc/redoc.standalone.js.map

请检查此 JS 文件中的 URL 引用,特别是任何相对路径可能指向错误的位置。 enter image description here

最佳答案

我已经找出这个错误的原因了。我正在使用 Django==4.0,我必须将其降级到 Django==3.2.9,错误就消失了。

关于django - Whitenoise.storage.MissingFileError : The JS file 'drf-yasg\redoc\redoc.min.js' references a file which could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70289038/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com