Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This branch is 2 commits ahead, 559 commits behind develop

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Setting Up the development environment

  • Create a folder "mangrove" which will have the following:

    $ CLONE mangrove, datawinners, shape files from github ( into the folder which we have created
      All the three repositories should be at the same directory level in the folder we created.
  • sudo apt-get install gdal-bin python-psycopg2 python-setuptools

  • Setup virtual environment:

    $ (
  • Install pip

  • DataBase Requirements:

    $ Intsall Postgres (For Linux - apt-get install postgresql-8.4)
    $ Intsall Postgis  (For Linux - apt-get install postgresql-8.4-postgis)
            NOTE: If unable to install (specially for Ubuntu 11.10 users) you can perform the following:
                    $ sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
                    $ update repository
                    $ apt-get install postgresql-8.4-postgis
    $ Install CouchDb  (For Linux - apt-get install couchdb)
  • Install python-dev if already not installed

  • See if gcc is installed on the system:

    $ type dpkg -i gcc
    $ if not install gcc with the command sudo apt-get install gcc
  • See if make is install on the system:

    $ type dpkg -i make
    $ if not, install make with the command sudo apt-get install make
  • See if g++ is install on the system:

    $ type dpkg -i g++
    $ if not, install g++ with the command sudo apt-get install g++
  • Install GEOS, PROJ.4 & GDAL:

    $ sudo apt-get install libgeos-c1 libpq-dev libxml2-dev libxslt1-dev

  • From your user exceute following commands to create postgis template:

    $ wget
    $ chmod 755
    $ run ./
  • Create geodjango db from the postgis template:

    $ createdb -T template_postgis geodjango
  • In Mangrove module:

    $ pip install -r requirements.pip
    $ python develop
  • In DataWinners module:

    $ pip install -r requirements.pip
    $ python syncdb migrate recreatedb
    $ python loadshapes
    $ compilemessages
    $ python runserver
Something went wrong with that request. Please try again.