Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tutorial to set up a new Django project with Neo4j REST server
Python CSS
Branch: master

Neo4j and Django tutorial

This documentation will evolve as I spend time playing with the project.

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 neo4j-django-tutorial
. neo4j-django-tutorial/bin/activate

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

pip install paver==1.2.2
pip install -r requirements.txt

Copy the generic Django setting file to and run syncdb:

cp neo4jtut/neo4jtut/ neo4jtut/neo4jtut/
python neo4jtut/ syncdb

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 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 issue the following commands:

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.