@Wes is right in the comments- your endpoint should be set to a relative URL, not a file path.
From the docs, try 'ENDPOINT':'/db/data'
, which is the default for Neo4j.
EDIT:
Some other bits of advice:
You definitely don't need to add anything in your Apache config. Apache serves up your content from Django, but doesn't control which ports you can access from Django- its config files only cover which ports external users can access. In fact, if Apache is configured to listen on 7474 and it's on the same server as Neo4j, one of them won't be able to use the port.
In your code, you use a = Anode.objects.create(...)
followed by a.save()
. Anode.objects.create()
is a shortcut for
a = Anode(...)
a.save()
so you're actually saving twice. I'd use one or the other to avoid hitting the database more often than necessary.