django-models - neo4django: AttributeError: 类型对象 'Model' 没有属性 '__metaclass__'

标签 django-models neo4j neo4django

我只是在尝试 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/

相关文章:

django - 提高 Django PostgreSQL 查询的性能

django-models - Django 过滤器与模型中的获取

java - Gremlin 获取共享同一顶点的边

spring-mvc - 在 spring roo mvc 项目的 show.jspx 中添加按钮

Django 管理错误 ValidationError : ['ManagementForm data is missing or has been tampered with' ] due to conditional inline use

python - 如何保持 Neo4j bolt session 打开?

python - 如何在neo4django中扩展关系类

python - 如何在 neo4django 模型上存储浮点值

python - 如果用户在一段时间内不活动,则使用户 session 过期,并在数据库中记录其 session 开始和结束时间