All of a sudden my Neomodel / Django app doesn't connect to DB?

fruitfulapproac
Graph Buddy

I haven't changed anything db-related in my Django settings. Even restarted my machine.

There is no error returned in the code, it just returns an empty list when doing say MyModel.nodes.get_or_create(...), so I can't trouble shoot it further. I am gonna try recreating the test database with the latest and greatest Neo4j and see what happens. Will report back here.

Can you suggest anything to try?

I tried:

from neomodel import db
db.set_connection('bolt://neo4j:neo4j@localhost:7687')

Right before a transaction, same issue. How can Neomodel do this to me!?!

1 ACCEPTED SOLUTION

fruitfulapproac
Graph Buddy

Neomodel doesn't like my get_or_create call. Will maybe replace with querying followed by ctor create of the model if it doesn't work.

View solution in original post

1 REPLY 1

fruitfulapproac
Graph Buddy

Neomodel doesn't like my get_or_create call. Will maybe replace with querying followed by ctor create of the model if it doesn't work.