from os import environ ############################################# ########### DO NOT TOUCH ################### ############################################# mturk_hit_settings = { 'keywords': ['academic','study','common pool','experiment','money','short'], 'title': "common resource experiment (few minutes to complete, earn real money)", 'description': 'Academic decision making experiment', 'frame_height':500, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment':40, 'expiration_hours':2*24, 'qualification_requirements':[ # Only US { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, # At least 15 HITs approved { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [15] }, # At least 95% of HITs approved { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [95] }, { 'QualificationTypeId': "3RATMYZWZZZG4KUH0L0UJ5Q3TR01Y9", 'Comparator': "DoesNotExist", }, ] } ############################################# ############################################# # 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'] SESSION_CONFIG_DEFAULTS= { "real_world_currency_per_point": 1, 'participation_fee': 0.80, 'doc': "", "mturk_hit_settings": mturk_hit_settings } ################################################## ####### ENTER THE SESSIONS YOU WANT TO PLAY ###### ################################################# SESSION_CONFIGS = [ dict( name= "Dissertation", display_name="Behavioral Games", app_sequence=['part1diss_attentioncheck', 'part2diss_trustgames','part3diss_mainsurvey'], num_demo_participants=10, #use_browser_bots=True ), ] # 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'] #PARTICIPANT_FIELDS = ['race'] SESSION_FIELDS = [] # 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 ROOMS = [] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable #ADMIN_PASSWORD = environ.get('password') DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = '7322949765038' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] # EXTENSION_APPS = ['leavable_wait_page'] AWS_ACCESS_KEY_ID = environ.get("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY_ID = environ.get("AWS_SECRET_ACCESS_KEY_ID")