在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
如果您运行示例项目,只需更改以下命令:
$ make sandbox
至:
$ make install
$ pip install Django==1.8.7
$ make build_sandbox
它会起作用
Django 1.9不兼容。建议使用django 1.8。所以只需卸载django 1.9
pip uninstall django
然后安装较低版本的django
pip install "django<1.9"
它的工作原理。