2008-12-06 68 views
1

我有问题使用django-tagging。我尝试按照documentation,但在第二个步骤django-tagging的安装问题

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.

我出现以下错误蟒蛇回溯失败:

ImportError: cannot import name parse_lookup 

下面的作品,所以我认为这是正确安装:

>> import tagging 
>> tagging.VERSION 
(0, 2.1000000000000001, None) 

我错过了什么?

回答

4

http://code.djangoproject.com/ticket/7680

parse_lookup已被删除。不知道这将如何影响标签。可能想要做一些搜索。

更新:显然它已被固定在标签的主干版本中。下载标签的最新SVN版本。

+0

谢谢,我会尝试最新版本,而不是。 – Jonas 2008-12-06 16:19:35

+7

5年后还有`tagging`这个问题 – 2013-06-15 07:13:20

0

我最近有同样的bug。我检查了似乎工作正常的后备箱释放。

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