django-tagging 的安装问题

发布于 2024-07-10 10:54:36 字数 807 浏览 3 评论 0原文

我在使用 django-tagging 时遇到问题。 我尝试遵循文档但第二步失败了

安装 Django Tagging 并希望在 Django 应用程序中使用它后,请执行以下操作:

  1. “标记”放入您的INSTALLED_APPS设置中。
  2. 运行命令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:

  1. Put 'tagging' in your INSTALLED_APPS setting.
  2. 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 技术交流群。

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

发布评论

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

评论(2

我早已燃尽 2024-07-17 10:54:36

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.

夏夜暖风 2024-07-17 10:54:36

我最近也遇到了同样的错误。 我检查了后备箱释放装置,似乎工作正常。

In [1]: import tagging; tagging.VERSION
Out[1]: (0, 3, 'pre')

I had the same bug me recently. I checked out the trunk release which seems to work fine.

In [1]: import tagging; tagging.VERSION
Out[1]: (0, 3, 'pre')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文