Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-26-2018 04:28 PM
Hi, I am pretty new to Neo4j, but I am very excited to the technology and I want to use it as my persistence plataforma for my new start up product that I am going to develop with Python and Django in the back-end, and React in the front-end.
I have installed Neo4j Desktop and have been using it to learn the concepts and to get fluent on cypher. Now I want to connect it to Django, but I am getting some issues: I just can't get a connection from Django to the Database.
I have configured my settings.py with config.DATABASE_URL = 'bolt://hugolvc:Steppen1@localhost:7687'
and I have installed neomodel and ne04j-driver, but I get a "ServiceUnavailable" error.
Can I use Neo4j Desktop Database from Python?
08-26-2018 06:31 PM
To answer the question - yes you can use python to connect to a local database running in Neo4j Desktop.
Can you paste the full error that you're seeing? Also please past anything that looks relevant from neo4j.log and debug.log within neo4j Desktop.
08-26-2018 07:42 PM
David, thanks for answering. I just found what the problem is, It's an exclamation character in the password. I just changed the password and I got able to connect from python. I don't know where the problem arises from because I can connect from Neo4j desktop with the exclamation character in the password, but not from python.
08-27-2018 01:32 AM
Could you do me a favour and try to use the URL encoding %21
for !
?
08-27-2018 01:33 AM
Which Django integration/Python driver do you use?
08-27-2018 10:34 AM
django-neomodel==0.0.4
neo4j-driver==1.6.1
08-29-2018 12:58 PM
Did you try the alternative encoding?
All the sessions of the conference are now available online