gpt4 book ai didi

python - 错误 : No module named staticfiles

转载 作者:IT老高 更新时间:2023-10-28 20:44:02 24 4
gpt4 key购买 nike

我是 django 的新手,我正在尝试在生产服务器上部署我的项目,但我收到了这个错误:

Error: No module named staticfiles

尝试启动服务器时:

python manage.py runfcgi host=127.0.0.1 port=8081 --settings=settings

使用 fastCGI + nginx

有什么想法吗?

谢谢!

最佳答案

您可能使用的是旧版本的 Django。 staticfiles 应用程序仅从 1.3 版本开始提供。

关于python - 错误 : No module named staticfiles,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4987333/

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