MTurk安装(不使用oTree Studio)¶
如果你没有使用oTree Studio,下面是一些安装Mechanical Turk集成的额外步骤。
安装¶
在你的 requirements.txt
或 requirements_base.txt
中(不是两者都要),你应当将 otree
改为 otree[mturk]
。
预览模板¶
创建一个文件(目前还是空的)命名为 _templates/global/mturk_template.html
。
Session config¶
在 SESSION_CONFIG_DEFAULTS
中,添加:
mturk_hit_settings=dict(
keywords='bonus, study',
title='Title for your experiment',
description='Description for your experiment',
frame_height=500,
template='global/mturk_template.html',
minutes_allotted_per_assignment=60,
expiration_hours=7 * 24,
qualification_requirements=[]
# grant_qualification_id='YOUR_QUALIFICATION_ID_HERE', # to prevent retakes
),