Skip to content

pivotaccess2007/rapidsmsrw1000

Repository files navigation

Rapidsmsrw1000

Below you will find basic setup instructions for the rapidsmsrw1000 project. To begin you should have the following applications installed on your local development system:

For Ubuntu:

sudo apt-get install python-dev

Getting Started

To setup your local environment you should create a virtualenv and install the necessary requirements:

virtualenv --distribute rapidsmsrw1000-env
source rapidsmsrw1000-env/bin/activate
cd rapidsmsrw1000
pip install -r requirements/base.txt

=====In the situation it fails to install distribute, you need to run the following command to rebuild python(Identified in python-2.7.3): =====sudo apt-get install build-essential

Update your settings file:

cp local.py.example settings.py

Configure settings as needed for your local environment.

Create the MySQL database and run the initial syncdb/migrate:

mysql -u root -p
mysql> CREATE DATABASE rapidsmsrw1000;
mysql> CREATE USER rapidsmsrw1000 identified by '123456';
mysql> GRANT ALL ON rapidsmsrw1000.* TO 'rapidsmsrw1000'@'%';
mysql> GRANT ALL ON test_rapidsmsrw1000.* TO 'rapidsmsrw1000'@'%';
mysql> FLUSH privileges;
mysql> quit
python manage.py syncdb

You should now be able to run the development server:

python manage.py runserver

Many views in this project return a 404 error unless your user is associated with a location. To associate a location, navigate to the Django admin and add a new 'User Location' under the 'Ubuzima' section.

About

This is the rapidsms rwanda for 1000 days

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published