neo4django
으로 생성 된 에 django
이 있습니다. 내가 장고에 시도neo4django를 사용할 때 노드 속성이 만들어지지 않습니다.
class Person(models.NodeModel):
"""
Persons of a Company
"""
email = models.EmailProperty(required=True, unique=True, indexed=True,
name=_(u'email'),
verbose_name=_(u'person email address'),
help_text=_(u'bla bla bla some help text'))
full_name = models.StringProperty(name=_(u'Person full name'))
# Neo4J Relationships
role = models.Relationship(Role, rel_type='has_role',
direction='Outgoing',
related_name='persons')
company = models.Relationship(Company, rel_type='works_to',
direction='Outgoing',
related_name='employees')
는
>>> p = Person.objects.create(email=u'[email protected]')
>>> p.id
6
>>> Person.objects.get(id='6')
<Person: Person object>
>>> Person.objects.get(email=u'[email protected]')
Traceback [bla bla bla]
[...]
DoesNotExist: Person matching query does not exist.
>>>
나는 또한 Neo4J
웹 인터페이스에 확인 쉘 나는 그러나 어떤 속성없이 생성 된 노드를 참조하십시오!
이 문제는 언급 한 것과 같습니다. here 그러나 이것이 동일한 문제인지 확실하지 않습니다.
당신은 Django 1.4.5
및
와우 - 저는 특히 1.5를 공식적으로 지원하지 않기 때문에이 작업에 놀랐습니다. 굉장해. –
작동하지만 약간의 사소한 결함이 있습니다. 여기 또는 github (제안하는 곳)에서보고하고 프로젝트에 대한 업데이트를 제공 할 수 있습니다. – nikolasd
나는 GitHub에서 그걸 분명히보고 할 것이다. 당신이 겪는 이슈의 로드맵은 공식적인 지원을 정말로 가속화 할 것입니다 (https://github.com/scholrly/neo4django/issues/143). –