1. Python 2.7.5

  2. We recommend the use of virtualenv <> — Install it.

  3. Create a virtual environment and activate it:

    $ virtualenv ~/.python-envs/crowdata
    $ . ~/.python-envs/crowdata/bin/activate
  4. Get the source code:

    $ git clone crowdata
    $ cd crowdata
  5. Install dependencies:

    $ pip install -r requirements.txt

(If you are using Ubuntu, you may need to install python-dev before dependencies.)

  1. Create PostgreSQL database:

    $ createuser -s -h localhost crow_user
    $ createdb -O crow_user -h localhost crowdata_development
  2. Create extensions for doing trigram matching <> and removing accents <> in PostgreSQL:

    $ psql -ucrow_user
    crow_user=# \c crowdata_development
    crowdata_development=# CREATE EXTENSION pg_trgm;
    crowdata_development=# CREATE EXTENSION unaccent;

    Note: In Debian/Ubuntu you need to install postgresql-contrib-9.1 and geospatial libraries.

  3. We keep local settings out of GIT. You will need to copy to You will need to edit the database settings there.:

        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
            'NAME': 'crowdata_development',                      # Or path to database file if using sqlite3.
            'USER': 'crow_user',
            'PASSWORD': '',
            'HOST': '',
            'PORT': '',
  4. Initialize the database:

    $ python syncdb
    $ python migrate --all
  5. Start the development server:

    $ python runserver_plus