Questions tagged [neo4django]

Neo4django is a Django ORM integration of the Neo4j graph database

neo4django is an Object Graph Mapper that let’s you use familiar Django model definitions and queries against the Neo4j graph database.

Links

55 questions
2
votes
1 answer

neo4django: unexpected (?) warning?

I'm not sure why I get this warning; it might well be that I do not completely comprehend the related_name concept, but I thought having different rel_types would make the above model not ambiguous/conflicting... I get the following warnings in…
A Sz
  • 984
  • 7
  • 19
2
votes
1 answer

How to extend Relationship class in neo4django

I've seen that relationship properties are not yet implemented in neo4django. The workaround exposed in this thread is to have a new node type for each relationship with a property. I can't afford too much calculations so I don't want to use this…
2
votes
1 answer

Query on neo4j parent class doesnot return anything

I have defined the parent class of Person, and a subclass of Father as following: class Person(models.NodeModel): first_name = models.StringProperty() middle_name = models.StringProperty() last_name = models.StringProperty() class…
bijbij
  • 129
  • 1
  • 7
2
votes
3 answers

Running Django and Neo4j on Heroku

I'm trying to deploy my Django app to Heroku using Neo4j's Addon. I'm using Neo4django. Locally, in my settings.py I have the following NEO4J_DATABASES = { 'default' : { 'HOST':'localhost', 'PORT':7474, …
user1115538
2
votes
1 answer

How to use ModelForm with neo4django?

This seems like a bug but I just want to make sure I'm consuming the API properly. It seems that support for django's modelform isn't supported on neo4django. Here's what I have: Simple class: from neo4django.db import models class…
Alan Illing
  • 1,376
  • 2
  • 14
  • 18
1
vote
0 answers

No Module Named neo4j in Travis-CI integrated with Python Django

I have built a small python application in Django framework, with Neo4j database hosted on Graphene db. I am integrating Travis-CI for continuous integration with the application on github, however, I am stuck on getting an error in Travis like:…
ekta
  • 121
  • 1
  • 5
1
vote
0 answers

Neo4Django - How to define relationships dynamically?

I don't have static lists of nodes and relationships between them. Users will enter their own data to the db, along with relationships. For example, after registration they will have a person node with name and userid properties, and after adding…
0xmtn
  • 2,625
  • 5
  • 27
  • 53
1
vote
0 answers

Neo4django querying

In my models.py file I have: class Place(models.NodeModel): name = models.StringProperty() class Person(models.NodeModel): name = models.StringProperty() age = models.IntegerProperty() location = models.Relationship('self',…
user3241376
  • 407
  • 7
  • 20
1
vote
1 answer

Neo4django relationship query not working

First off I apologize if this issue has already been documented somewhere, but I've done a fair bit of hunting around and haven't found anything. I have two classes: class A(models.NodeModel): email = models.EmailProperty(indexed=True) class…
user1438377
  • 43
  • 1
  • 7
1
vote
1 answer

AttributeError 'IdLookup' object has no attribute 'rel'

I try to use the django REST-framework's tutorial http://django-rest-framework.org/#django-rest-framework to administrate users. (I also use the Neo4j database and the neo4django mapper https://github.com/scholrly/neo4django to acces data via…
1
vote
1 answer

Using StringArrayProperty in neo4django

EDIT I re-writed the question including more general aspects. I'm using StringArrayProperty in neo4django, using use_string = True so it's saved a single string in Neo4j. When a new model is created, that field type is a tuple, but I need it as a…
tonjo
  • 1,394
  • 1
  • 14
  • 27
1
vote
1 answer

neo4django mixin inheritance problems

Considering my previous question, I try to implement what I need. The following is the content of a django app models.py. from neo4django.db import models from neo4django.auth.models import User as AuthUser class…
tonjo
  • 1,394
  • 1
  • 14
  • 27
1
vote
1 answer

neo4django multiple inheritance

I was trying to create my model MyUser extending neo4django.auth.models.User, so I can use the underlying authentication system. The problem is I want create also a superclass from which derive many methods and attributes that are very common for my…
tonjo
  • 1,394
  • 1
  • 14
  • 27
1
vote
2 answers

how to rewrite a url and change it from database values in django

I have two type of urls in my project:one is something like domain.com/firstname.lastname and another domain.com/user_id i like to rewrite the second url to first scheme: domain.com/13243 ====> domain.com/peter.norvig ====>13243 is read from…
mojibuntu
  • 307
  • 3
  • 16
1
vote
1 answer

How to use indexed properties of NodeModels in cypher queries of Neo4django?

I'm a newbie to Django as well as neo4j. I'm using Django 1.4.5, neo4j 1.9.2 and neo4django 0.1.8 I've created NodeModel for a person node and indexed it on 'owner' and 'name' properties. Here is my models.py: from neo4django.db import models as…