Django Data Collection tool using ODK Collect mobile App
Project description
django-odk
Django data collection tool using ODK-collect mobile app.
Prerequisite
- Django web site up and running
- Smartphone or tablet with ODK-Collect installed
- Set of forms in Xforms format available in xml. Use https://getodk.org/xlsform/ to validate and export your forms in xml format.
Installation
Run
$ pip install django-odk
$ python manage.py migrate
$ python manage.py createsuperuser
Add django_odk to your INSTALLED_APPS setting:
INSTALLED_APPS = (
...
'odk',
)
Add the following variables with appropriate language to settings.py
# django-odk app
AVAILABLE_TXT = 'Available form'
SUBMITTED_TXT = 'Submitted form'
Add odk.urls to the main urls.py file:
urlpatterns = [
...
path('odk/', include('odk.urls'), name='odk'),
]
Add menu or buttons to access Available form
# bootstrap5 menu item example
<li><a class="dropdown-item" href="{% url 'odk:xform_list' %}">{% trans "ODK available forms" %}</a></li>
Add menu or buttons to access Submitted form
# bootstrap5 menu item example
<li><a class="dropdown-item" href="{% url 'odk:xformsubmit_list' %}">{% trans "ODK submitted forms" %}</a></li>
Upload Xforms
Connect to django-odk => Available form => Add and follow instructions to upload xml forms
Once it is done, you are ready to go with form encoding on your smartphone!
Follow ODK instructions to configure the connexion to the server
Get, fill-in and submit data using ODK Collect
Get submitted data on server
Go to Submitted form menu of your server to see submitted data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_odk-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7da783981d5f5506448b93ac04421331b85b6577b357fd40c970311bbae287ad |
|
MD5 | 7f4c8b464ddd82e8b887e74761950a9d |
|
BLAKE2b-256 | 0c61837704ef5178b0be0c4ffd9b8502b8d30ffa1edcd151cf8570bd0a77b4b1 |