from os import environ SESSION_CONFIGS = [ dict( name='survey', display_name='survey', num_demo_participants=1, app_sequence=['survey'], ), ] # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override it. # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] mturk_hit_settings = dict( keywords='bonus, study, categrory', title='Image Attribution (~10mins)', description='You will be asked to perform a simple task to attribute image. It will last 10-15 mins.', frame_height=500, template='global/mturk_template.html', minutes_allotted_per_assignment=60, expiration_hours=7 * 24, qualification_requirements = [] # qualification_requirements=[{'QualificationTypeId': "36EODA36TV622GIFHO3AGYV6XJH8BN", # 'Comparator': "DoesNotExist"}, { # 'QualificationTypeId': "00000000000000000071", # 'Comparator': "EqualTo", # 'LocaleValues': [{'Country': "US"}] # }] # grant_qualification_id='36EODA36TV622GIFHO3AGYV6XJH8BN', # to prevent retakes ) SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=2.00, doc="", mturk_hit_settings=mturk_hit_settings ) # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ # don't share this with anybody. SECRET_KEY = '{{ secret_key }}' INSTALLED_APPS = ['otree'] ROOMS = [ # dict( # name='ilies7nzw7', # display_name='ilies7nzw7' # ), # dict( # name='y5x1vc3ni0', # display_name='y5x1vc3ni0' # ), dict( name='pmcma6pchs', display_name='pmcma6pchs' ), ]