导入存储模块 staticfiles.storage 时出错:“没有名为 staticfiles.storage 的模块”

发布于 2025-01-02 05:22:30 字数 287 浏览 2 评论 0原文

我正在尝试使用 django-cms 2.2 和 django 1.2.3 启动准系统站点,但收到此错误:

 Error importing storage module staticfiles.storage: "No module named staticfiles.storage"

当转到 时http://127.0.0.1:8000/admin。 一个人需要做什么?

I'm trying to start barebone site with django-cms 2.2 and django 1.2.3, but receive this error:

 Error importing storage module staticfiles.storage: "No module named staticfiles.storage"

when going to http://127.0.0.1:8000/admin.
What one needs to do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轻许诺言 2025-01-09 05:22:30

Django cms 2.2 表示您需要 django 1.2.5 或 django 1.3。

我肯定会选择 django 1.3。

您必须添加一些与新 staticfiles 应用程序相关的设置,但一旦它运行,您就可以开始使用了。看来 django-cms 已将其静态文件移至新的静态文件系统中。

https://docs.djangoproject.com/en/1.3/howto/static-文件/

Django cms 2.2 says you need django 1.2.5 or django 1.3.

I'd definitely grab django 1.3.

You'll have to add a few settings related to the new staticfiles app but once it's running you should be good to go. It seems django-cms moved their static files to work with the new staticfiles system.

https://docs.djangoproject.com/en/1.3/howto/static-files/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文