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

吃可爱长大的小学妹 提交于 2019-12-10 18:42:52

问题


I was just trying neo4django's very own example, namely

from neo4django.db import models

class Person(models.NodeModel):
    name = models.StringProperty()
    age = models.IntegerProperty()

    friends = models.Relationship('self',rel_type='friends_with')

However, when running python manage.py syncdb I get the following error:

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

Any ideas?

(I would use label "neo4django" here in Stackoverflow, but it does not let me create a new label yet).


回答1:


See https://github.com/scholrly/neo4django/issues/143- we won't support Django 1.5+ until the next release!



来源:https://stackoverflow.com/questions/16747310/neo4django-attributeerror-type-object-model-has-no-attribute-metaclass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!