Database Reference
In-Depth Information
Listing 9-12.
Database Connection Settings
graph_db = neo4j.GraphDatabaseService("https://username:password@theURL:7473/db/data/")
If you have installed a local Neo4j server instance, you can modify the configuration to use the local address and
port that you specified during the installation, as in the example shown in Listing 9-13.
Listing 9-13.
Database Connection Settings for Local Enviroment
graph_db = neo4j.GraphDatabaseService("http://localhost:7474/db/data/")
Once the environment is properly configured, you can open a browser to the URL,
http://practicalneo4j-
python
, and you should see a page like the one shown in Figure
9-6
.
Figure 9-6.
The Python sample application home page