# django-odk
Django data collection tool using [ODK-collect](https://play.google.com/store/apps/details?id=org.odk.collect.android&hl=en_US&gl=US) mobile app.
## Prerequisite
- Django web site up and running
- Smartphone or tablet with [ODK-Collect installed](https://play.google.com/store/apps/details?id=org.odk.collect.android&hl=en_US&gl=US)
- Set of forms in [Xforms](https://xlsform.org/en/) format available in xml. Use https://getodk.org/xlsform/ to validate and export your forms in xml format.
## Installation
Run
```bash
$ pip install django-odk
$ python manage.py migrate
$ python manage.py createsuperuser
```
Add django_odk to your INSTALLED_APPS setting:
```py
INSTALLED_APPS = (
...
'odk',
)
```
Add the following variables to settings.py
```py
# django-odk app
AVAILABLE_TXT = 'Available form'
SUBMITTED_TXT = 'Submitted form'
```
Add odk.urls to the main urls.py file:
```py
urlpatterns = [
...
path('odk/', include('odk.urls'), name='odk'),
]
```
## 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](https://docs.getodk.org/collect-connect/#configure-server-manually) to configure the connexion to the server
> Get, fill-in and submit data [using ODK Collect](https://docs.getodk.org/collect-using/)
## Get submitted data on server
Go to **Submitted form** menu of your server to see submitted data
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:django-odk-0.1.7.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
django-odk-0.1.7.tar.gz (39个子文件)
django-odk-0.1.7
MANIFEST.in 157B
PKG-INFO 3KB
django_odk.egg-info
PKG-INFO 3KB
requires.txt 61B
SOURCES.txt 999B
top_level.txt 4B
dependency_links.txt 1B
odk
models.py 13KB
storage.py 729B
apps.py 138B
utils.py 9KB
templates
submission.xml 463B
xform_howto_fr.html 628B
odk
xformsubmit_list.html 2KB
xform_upload.html 1KB
xformsubmit_detail.html 2KB
_xform_detail_modif.html 724B
_xformsubmit_detail_main.html 2KB
_xformsubmit_detail_modif.html 732B
_xform_detail_main.html 1KB
xform_detail.html 3KB
xform_list.html 1KB
xform_howto.html 1KB
xformsList.xml 466B
static
js
form_detail.css 486B
enableajaxindjango.js 2KB
required_fields.js 218B
__init__.py 546B
views.py 5KB
admin.py 187B
templatetags
model_tags.py 961B
settings_tags.py 639B
urls.py 1KB
forms.py 679B
LICENSE 34KB
setup.cfg 38B
setup.py 1KB
CHANGELOG.rst 70B
README.md 1KB
共 39 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功