{% extends "otree/admin/Session.html" %} {% load otree i18n %} {% block content %} {{ block.super }} {% if not mturk_ready %}

MTurk is currently disabled. If you want to publish your HIT on MTurk please do the following steps:

{% if not is_new_format %} {% endif %}
Step Done?
Run pip3 install otree[mturk] and in your requirements_base.txt, replace otree==N.N.N with otree[mturk]==N.N.N. This will install oTree along with extra MTurk-specific packages. {{ boto3_installed|yesno }}
Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY {{ aws_keys_exist|yesno }}
Add template to your MTurk settings, and remove preview_template. Then create a new session. (This is a new requirement as of October 2019. If you want to stay on the old version, use otree[mturk]<2.3 in your pip3 install and requirements_base.txt. ) {{ is_new_format|yesno }}
{% elif session.mturk_is_expired %}

This HIT has expired, so workers can no longer accept assignments.

{% elif session.mturk_HITId %}

You have published HIT for this session on MTurk {% if session.mturk_use_sandbox %} Sandbox {% endif %} .

To look at the HIT as a worker follow this link.

{% csrf_token %}

The above button will expire this HIT early. You should click this button before deleting the session. Otherwise, your nonexistent session will still be advertised on the MTurk website, and MTurk workers will get a "page not found" error. (However, it is safe to delete the session if all assignments have been submitted.)

{% else %}
{% csrf_token %}

If this box is checked, your HIT will not be published to the MTurk live site, but rather to the MTurk Sandbox, so you can test how it will look to MTurk workers.

When you click the below button, your HIT will be immediately published on MTurk.

{% endif %} {% include "otree/includes/messages.html" %} {% endblock %}