Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tutorial to set up a new Django project with Neo4j REST server
Failed to load latest commit information.
neo4jtut Fixes for neo4jdb basic auth
.gitignore Starting new tutorial
requirements.txt Fixes for neo4jdb basic auth

Neo4j and Django tutorial

How to get started

Go to a directory of you choice and clone this repository:

git clone
cd neo4j-django-tutorial

Create virtualenv inside the repository and activate it:

virtualenv tutorialenv
source tutorialenv/bin/activate

Install the packages that you need (paver is needed until neo4jdb issue #5 is closed):

pip install paver
pip install -r requirements.txt

Download the latest Neo4j Community Edition from

Untar it anywhere and start it:

tar xvfz /path/to/neo4j-community-2.x.z-unix.tar.gz
cd neo4j-community-2.x.z-unix
bin/neo4j start

Go to http://localhost:7474 in your favorite browser and update the default password.

After updating your password find a link called "The Movie Graph", click it. If not on the front page it can be found when clicking the i-icon to the left. Click the arrow icon to the right in the box that pops up and import the Cypher statement. Now you got some data in your graph.

Go back to your terminal window where you are in the repository directory and copy the generic Django setting file to

cp neo4jtut/neo4jtut/ neo4jtut/neo4jtut/

Edit the file and change NEO4J_PASSWORD to the one you previously set in the neo4j web frontend.

vi neo4jtut/neo4jtut/

After editing, issue the following commands:

python neo4jtut/ syncdb
python neo4jtut/ bootstrap
python neo4jtut/ runserver

Go to http://localhost:8000 in your favorite browser to see the tutorial app.

Something went wrong with that request. Please try again.