Skip to content

dianedetoeuf/django_kobo

 
 

Repository files navigation

CARPE Surveys

CARPE survey website. Fetches data collected with Kobo Toolbox, runs various analysis and shows results on website.

Config

Install Docker and Docker Compose

Register your app with ArcGIS Portal. Enter http://<url>:<port>/oauth/complete/portal/ as redirect URI.

Create file .env in app folder. Add the following lines

SECRET_KEY=<your django key>
LOG_LEVEL=<DEBUG|INFO|WARNING|ERROR|CRITICAL>
DEBUG=<True|Flase>
DB_NAME=<pg db name>
DB_USER=<pg user>
DB_PASSWORD=<pg password>
DB_HOST=<pg host>
DB_PORT=<pg port>
PORTAL_URL=<portal url>
PORTAL_KEY=<arcgis portal app key>
PORTAL_SECRET=<arcgis portal app secret>

First Run

./django_kobo.sh init

follow the command promt

  • confirm the static file collection
  • and enter the admin user for your site

Afterwards logon to localhost/admin create a new connection using your kobo Toolbox user name and password enter host assets: https://kf.kobotoolbox.org/assets/ host api: https://kc.kobotoolbox.org/api/v1/

About

Kobo Aggregator

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.5%
  • HTML 13.1%
  • CSS 6.8%
  • Other 0.6%