neo4django:AttributeError:type object'Model'没有属性'__metaclass__' [英] neo4django: AttributeError: type object 'Model' has no attribute '__metaclass__'

查看:352
本文介绍了neo4django:AttributeError:type object'Model'没有属性'__metaclass__'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚尝试neo4django的非常自己的例子,即



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')

但是,当运行 python manage.py syncdb 时,会收到以下错误:

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

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

任何想法?

(我将在Stackoverflow中使用标签neo4django,但不允许我创建一个新的标签)

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

推荐答案

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

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

这篇关于neo4django:AttributeError:type object'Model'没有属性'__metaclass__'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆