django-tagging 的安装问题
我在使用 django-tagging 时遇到问题。 我尝试遵循文档但第二步失败了
安装 Django Tagging 并希望在 Django 应用程序中使用它后,请执行以下操作:
- 将
“标记”
放入您的INSTALLED_APPS
设置中。- 运行命令
manage.pysyncdb
。
syncdb
命令创建必要的数据库表,并为所有需要它们的已安装应用程序创建权限对象。
我收到一个带有以下错误的 python Traceback:
ImportError: cannot import name parse_lookup
以下有效,所以我认为它已正确安装:
>> import tagging
>> tagging.VERSION
(0, 2.1000000000000001, None)
我缺少什么?
I am having problems using django-tagging. I try to follow the documentation but it fails at the second step
Once you've installed Django Tagging and want to use it in your Django applications, do the following:
- Put
'tagging'
in yourINSTALLED_APPS
setting.- Run the command
manage.py syncdb
.The
syncdb
command creates the necessary database tables and creates permission objects for all installed apps that need them.
I get a python Traceback with the following error:
ImportError: cannot import name parse_lookup
The following works, so I think it is correctly installed:
>> import tagging
>> tagging.VERSION
(0, 2.1000000000000001, None)
What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://code.djangoproject.com/ticket/7680
parse_lookup 已被删除。 不确定这将如何影响标记。 可能想做一些搜索。
更新:显然它已在标记的主干版本中修复。 下载最新的 SVN 标记版本。
http://code.djangoproject.com/ticket/7680
parse_lookup has been removed. Not sure how this will affect tagging. Might want to do some searching.
Update: apparently it's been fixed in the trunk version of tagging. Download the latest SVN build of tagging.
我最近也遇到了同样的错误。 我检查了后备箱释放装置,似乎工作正常。
I had the same bug me recently. I checked out the trunk release which seems to work fine.