我只是在尝试 neo4django 的 very own example , 即
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__'
有什么想法吗?
(我会在 Stackoverflow 中使用标签“neo4django”,但它还不允许我创建新标签)。
最佳答案
参见 https://github.com/scholrly/neo4django/issues/143-在下一个版本发布之前,我们不会支持 Django 1.5+!
关于django-models - neo4django: AttributeError: 类型对象 'Model' 没有属性 '__metaclass__',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16747310/