neo4django:属性错误:类型对象'Model'没有属性'__metaclass__'



我只是在尝试neo4django自己的例子,即

from neo4django.db import models
class Person(models.NodeModel):
    name = models.StringProperty()
    age = models.IntegerProperty()
    friends = models.Relationship('self',rel_type='friends_with')

然而,当运行python manage.py syncdb时,我得到以下错误:

AttributeError: type object 'Model' has no attribute '__metaclass__'

任何想法?

(我将使用标签"neo4django"在这里的Stackoverflow,但它不允许我创建一个新的标签)。

参见https://github.com/scholrly/neo4django/issues/143-,我们将不支持Django 1.5+,直到下一个版本!

最新更新