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': ['bonus', 'study'], 'title': 'Savings decision making task', 'description': 'Complete a short decision-making task as part of an experiment for the University of California, Irvine.', 'frame_height': 500, 'template': 'global/mturk_template.html', 'participation_fee': 1, 'minutes_allotted_per_assignment': 180, # 3 hours 'expiration_hours': 24, # 1 day # 'grant_qualification_id': 'YOUR_QUALIFICATION_ID_HERE',# to prevent retakes 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, ] } mturk_hit_settings_W = { 'keywords': ['bonus', 'study'], 'title': 'Savings decision making task', 'description': 'Complete a short decision-making task as part of an experiment for the University of California, Irvine.', 'frame_height': 500, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 180, # 3 hours 'expiration_hours': 24, # 1 day # 'grant_qualification_id': 'YOUR_QUALIFICATION_ID_HERE',# to prevent retakes 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, { 'QualificationTypeId': "3ZA6VN4RCNNAUKDJ130LXNQBVABXQN", 'Comparator': "EqualTo", 'IntegerValues': [1], 'ActionsGuarded': "DiscoverPreviewAndAccept" } ] } mturk_hit_settings_M = { 'keywords': ['bonus', 'study'], 'title': 'Savings decision making task', 'description': 'Complete a short decision-making task as part of an experiment for the University of California, Irvine.', 'frame_height': 500, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 180, # 3 hours 'expiration_hours': 24, # 1 day # 'grant_qualification_id': 'YOUR_QUALIFICATION_ID_HERE',# to prevent retakes 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, { 'QualificationTypeId': "3L339059XKHPK185F1OKFVBZUGV0H0", 'Comparator': "EqualTo", 'IntegerValues': [1], 'ActionsGuarded': "DiscoverPreviewAndAccept" } ] } SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 1.00, 'participation_fee': 7, 'doc': "", 'mturk_hit_settings': mturk_hit_settings, } SESSION_CONFIGS = [ { 'name': 'RS_Treatment1', 'display_name': "RS Treatment 1 - ESSL", 'num_demo_participants': 1, 'app_sequence': ['RST1', 'RST1_Task2','savings_survey','payment_info'], 'real_world_currency_per_point': 1, 'participation_fee': 7, }, { 'name': 'RS_Treatment1_MT', 'display_name': "RS Treatment 1 - MTurk", 'num_demo_participants': 1, 'app_sequence': ['RST1', 'RST1_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'mturk_hit_settings': mturk_hit_settings, }, { 'name': 'RS_Treatment1_MT_M', 'display_name': "RS Treatment 1 - MTurk Men", 'num_demo_participants': 1, 'app_sequence': ['RST1', 'RST1_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'mturk_hit_settings': mturk_hit_settings_M, 'participation_fee': 1, }, { 'name': 'RS_Treatment1_MT_W', 'display_name': "RS Treatment 1 - MTurk Women", 'num_demo_participants': 1, 'app_sequence': ['RST1', 'RST1_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'mturk_hit_settings': mturk_hit_settings_W, 'participation_fee': 1, }, { 'name': 'RS_Treatment2', 'display_name': "RS Treatment 2 - ESSL", 'num_demo_participants': 1, 'app_sequence': ['RST2', 'RST2_Task2', 'savings_survey', 'payment_info'], 'real_world_currency_per_point': 1, 'participation_fee': 7, }, { 'name': 'RS_Treatment2_MT', 'display_name': "RS Treatment 2 - MTurk", 'num_demo_participants': 1, 'app_sequence': ['RST2', 'RST2_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'participation_fee': 1, 'mturk_hit_settings': mturk_hit_settings }, { 'name': 'RS_Treatment2_MT_M', 'display_name': "RS Treatment 2 For MTurk - Men", 'num_demo_participants': 1, 'app_sequence': ['RST2', 'RST2_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'participation_fee': 1, 'mturk_hit_settings': mturk_hit_settings_M }, { 'name': 'RS_Treatment2_MT_W', 'display_name': "RS Treatment 2 For MTurk - Women", 'num_demo_participants': 1, 'app_sequence': ['RST2', 'RST2_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'participation_fee': 1, 'mturk_hit_settings': mturk_hit_settings_W }, { 'name': 'RS_Treatment3', 'display_name': "RS Treatment 3 - ESSL ", 'num_demo_participants': 1, 'app_sequence': ['RST3', 'RST3_Task2', 'savings_survey', 'payment_info'], 'real_world_currency_per_point': 1, 'participation_fee': 7, }, { 'name': 'RS_Treatment3_MT', 'display_name': "RS Treatment 3 - MTurk ", 'num_demo_participants': 1, 'app_sequence': ['RST3', 'RST3_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'participation_fee': 1, 'mturk_hit_settings': mturk_hit_settings }, { 'name': 'RS_Treatment3_MT_M', 'display_name': "RS Treatment 3 - MTurk Men ", 'num_demo_participants': 1, 'app_sequence': ['RST3', 'RST3_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'participation_fee': 1, 'mturk_hit_settings': mturk_hit_settings_M }, { 'name': 'RS_Treatment3_MT_W', 'display_name': "RS Treatment 3 - MTurk Women ", 'num_demo_participants': 1, 'app_sequence': ['RST3', 'RST3_Task2', 'savings_survey', 'paymentInfoMT'], 'real_world_currency_per_point': 1, 'participation_fee': 1, 'mturk_hit_settings': mturk_hit_settings_W } ] # see the end of this file for the inactive session configs # # Channel routing for real-time interaction CHANNEL_ROUTING = 'Retirement_Savings.routing.channel_routing' # 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 POINTS_DECIMAL_PLACES = 2 DEBUG = 0 BROWSER_COMMAND = "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" ROOMS = [ { 'name': 'ESSL_experiment', 'display_name': 'ESSL experiments', }, ] # AUTH_LEVEL: # this setting controls which parts of your site are freely accessible, # and which are password protected: # - If it's not set (the default), then the whole site is freely accessible. # - If you are launching a study and want visitors to only be able to # play your app if you provided them with a start link, set it to STUDY. # - If you would like to put your site online in public demo mode where # anybody can play a demo version of your game, but not access the rest # of the admin interface, set it to DEMO. # for flexibility, you can set it in the environment variable OTREE_AUTH_LEVEL #AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') 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 = 'n!j6a2e=ab!%5a-y)@6_u6pxc)fjg=5vei_)%3w6&k@e$t5i6a' INSTALLED_APPS = ['otree'] # AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') # AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') # John Duffy keys AWS_ACCESS_KEY_ID = 'AKIAJMQ4MWM6PBFEUULQ' AWS_SECRET_ACCESS_KEY = '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' #Nishtha Sharma keys #AWS_ACCESS_KEY_ID = 'AKIAR2TY763MVHPUB53O' #AWS_SECRET_ACCESS_KEY = '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'