Skip to content
Jackie k. Mutua edited this page Aug 3, 2015 · 8 revisions

Setup:

  • virtualenv env
  • cp env_vars.txt env_vars && chmod 755 env_vars && source ./env_vars
  • psql postgres
    • create database webparticipation
  • python manage.py createsuperuser
  • python manage.py migrate

In RapidPro instance, /temba/settings.py:

  • SEND_WEBHOOKS = True
  • SEND_MESSAGES = True

Celery

  • To run celery : python manage.py celery -B.

Common errors:

  • json object error: make sure rapidpro port is correct
  • contact()['uuid']: make sure api token is correct, get from /api/v1
  • DETAIL: Key (created_by_id)(1) is not present in table "auth_user" ==> python manage.py createsuperuser
  • 'compress' **TEMPLATE DOES NOT EXIST ** error might occur if there is a reference to 'simplejson' import from django utils, change this to import json.
Clone this wiki locally