from os import environ # 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 = { 'keywords': ['reward', 'bonus', 'study'], 'title': 'Inventory allocation decision (~20 min) | For desktop only', 'description': 'We are conducting research on decision making. During the experiment, your task is to make inventory allocation decisions and answer a questionnaire. No prior knowledge is required. Participation will take approximately 20 minutes and you will be paid a participation fee of 0.5 USD plus a bonus based on your decision performance. The average bonus payment is 1.5 USD.', 'frame_height': 800, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 30, 'expiration_hours': 96, # 7 days 'grant_qualification_id': '3W5U84BAJIIQKTIEV5KFTA89LWAMV5', 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [100] }, { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [99], }, { 'QualificationTypeId': "3W5U84BAJIIQKTIEV5KFTA89LWAMV5", 'Comparator': "DoesNotExist", }, ] } SESSION_CONFIG_DEFAULTS = { 'mturk_hit_settings': mturk_hit_settings, 'real_world_currency_per_point': 0.0001, 'participation_fee': 0.50, 'doc': "", } SESSION_CONFIGS = [ { 'name': 'Allocation', 'display_name': "Allocation", 'num_demo_participants': 10, 'app_sequence': ['Introduction', 'Allocation', 'Survey'], }, ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' TIME_ZONE = 'UTC' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True POINTS_DECIMAL_PLACES = 2 POINTS_CUSTOM_NAME = 'dollars' ROOMS = [] AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') # for security, best to set admin password in an environment variable ADMIN_USERNAME = 'PYS' ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = environ.get('OTREE_SECRET_KEY') # SECRET_KEY = 'z)qegxpmobxcoi-e&dvkhoqmt1b*cur382(6z1=48d3vf*l2-k' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']