django oscar尝试加载'treebeard.templatetags.admin_tree'时引发的ImportError:没有名为util的模块

问题描述 投票:0回答:2

在MAC上安装django-oscar时。制造奥斯卡抱怨道

Django Version:     1.9
Exception Type:     InvalidTemplateLibrary
Exception Value:    

Invalid template library specified. ImportError raised when trying to load 'treebeard.templatetags.admin_tree': No module named util
django django-oscar
2个回答
0
投票

如果您运行示例项目,只需更改以下命令:

$ make sandbox

至:

$ make install
$ pip install Django==1.8.7
$ make build_sandbox

它会起作用


0
投票

Django 1.9不兼容。建议使用django 1.8。所以只需卸载django 1.9

pip uninstall django

然后安装较低版本的django

pip install "django<1.9"

它的工作原理。

© www.soinside.com 2019 - 2024. All rights reserved.