Skip to content

mvpdev/nmis

Folders and files

NameName
Last commit message
Last commit date
Nov 21, 2011
Jul 6, 2011
Oct 29, 2013
Jul 20, 2011
Dec 27, 2011
Aug 5, 2011
Sep 12, 2011
Jul 9, 2011
Feb 20, 2012
Oct 29, 2013
Dec 20, 2012
Jul 22, 2011
Sep 12, 2011
Jan 8, 2012
Feb 15, 2012
Oct 28, 2010
Jun 6, 2011
Feb 15, 2012
Nov 19, 2012
Jun 15, 2011
Jun 20, 2011
Aug 11, 2011
Aug 11, 2011
Jan 10, 2012
Jan 12, 2012
Oct 29, 2013

Repository files navigation

NMIS Project v0.7

  1. Checkout this branch

    git checkout feature/dj13

2. Install MySQL. Right now we put MySQL-python in the requirements.pip file. This makes deployment easier, but means you have to have MySQL installed on your machine to install the requirements.

sudo apt-get install mysql-server mysql-client libmysqlclient-dev

3. Change directory into the folder where you want to make your virtual environment, and make a new virtualenv with the following command

virtualenv --no-site-packages [name-of-new-virtualenv]

Activate the virtual environment

source [path-to-virtualev-dir]/bin/activate

Change directory into the folder containing this README.rst and install the requirements

pip install -r requirements.pip
  1. Install dropbox and make a symbolic link to the cleaned csv folder*

    ln -s ~/Dropbox/NMIS-Nigeria/NMISData/final_cleaned_data/csv/ data

  2. Run a series of management commands

    # sync, migrate db and add default users python manage.py bootstrap

    # load sectors python manage.py load_sectors

    # load districts python manage.py load_districts

    # go through the data repo and mark lgas that have data available python manage.py mark_available_lgas

    # load key renames python manage.py load_key_renames

    # load in variables python manage.py reload_variables

    # load in lga data for all lgas python manage.py load_lgas # nb: individual lgas can be loaded as well, eg: # python manage.py load_lgas 366

    # load table definitions python manage.py load_table_defs

  • Alternatively, if you have the keys set up you can pull from the nmis_data private repo:

    git clone [email protected]:repositories/nmis_data.git data