导入存储模块 staticfiles.storage 时出错:“没有名为 staticfiles.storage 的模块”
我正在尝试使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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/