from os import environ import random # 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'] # list_Josue = ['cutcake_IcutUchoose_2','cutcake_cut_middle_2','cutcake_leftmost_2','cutcake_leftmost_3','cutcake_leftmost_4', # 'cutcake_last_challenger_3','cutcake_last_challenger_4','cutcake_sequential_split_4','cutcake_double_knife_3'] # random.shuffle(list_Josue) # list_Josue.append('cutcake_survey') # list_Josue.insert(0,'cutcake_practice_cutmiddle') # # list_Josue_shorter = ['cutcake_IcutUchoose_2','cutcake_cut_middle_2','cutcake_leftmost_2','cutcake_leftmost_3','cutcake_last_challenger_3','cutcake_double_knife_3'] # random.shuffle(list_Josue_shorter) # list_Josue_shorter.append('cutcake_survey_shorter') # list_Josue_shorter.insert(0,'cutcake_practice_cutmiddle_random') # # # list_Josue_preference = ['cutcake_IcutUchoose_2_chat','cutcake_bargaining_chat'] # random.shuffle(list_Josue_preference) # list_Josue_preference.append('cutcake_survey_preference') # list_Josue_preference.insert(0,'cutcake_practice_bargaining_random') # list_Josue_preference.insert(0,'cutcake_practice_IcutUchoose_random') SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.10, 'participation_fee': 5.00, 'doc': "", } SESSION_CONFIGS = [ { 'name': 'cutcake_cut_middle_2', 'display_name': "cutcake_cut_middle_2", 'num_demo_participants': 2, 'app_sequence': ['cutcake_cut_middle_2'], # 'use_browser_bots': True }, { 'name': 'cutcake_IcutYouChoose_2', 'display_name': "cutcake_IcutYouChoose_2", 'num_demo_participants': 2, 'app_sequence': ['cutcake_IcutUchoose_2'], }, # { # 'name': 'cutcake_IcutYouChoose_2_chat', # 'display_name': "cutcake_IcutYouChoose_2_chat", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_IcutUchoose_2_chat'], # }, # { # 'name': 'cutcake_leftmost_2', # 'display_name': "cutcake_leftmost_2", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_leftmost_2'], # }, # { # 'name': 'cutcake_leftmost_3', # 'display_name': "cutcake_leftmost_3", # 'num_demo_participants': 3, # 'app_sequence': ['cutcake_leftmost_3'], # }, # { # 'name': 'cutcake_leftmost_4', # 'display_name': "cutcake_leftmost_4", # 'num_demo_participants': 4, # 'app_sequence': ['cutcake_leftmost_4'], # }, # { # 'name': 'cutcake_double_knife_3', # 'display_name': "cutcake_double_knife_3", # 'num_demo_participants': 3, # 'app_sequence': ['cutcake_double_knife_3'], # }, # { # 'name': 'cutcake_bargaining_2', # 'display_name': "cutcake_bargaining_2", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_bargaining'], # }, # { # 'name': 'cutcake_bargaining_chat', # 'display_name': "cutcake_bargaining_2_chat", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_bargaining_chat'], # }, # { # 'name': 'cutcake_last_challenger_3', # 'display_name': "cutcake_last_challenger_3", # 'num_demo_participants': 3, # 'app_sequence': ['cutcake_last_challenger_3'], # }, # { # 'name': 'cutcake_last_challenger_4', # 'display_name': "cutcake_last_challenger_4", # 'num_demo_participants': 4, # 'app_sequence': ['cutcake_last_challenger_4'], # }, # { # 'name': 'cutcake_sequential_split_4', # 'display_name': "cutcake_sequential_split_4", # 'num_demo_participants': 4, # 'app_sequence': ['cutcake_sequential_split_4'], # }, # { # 'name': 'cutcake_survey', # 'display_name': "cutcake_survey", # 'num_demo_participants': 1, # 'app_sequence': ['cutcake_survey'], # }, # { # 'name': 'cutcake_survey_shorter', # 'display_name': "cutcake_survey_shorter", # 'num_demo_participants': 1, # 'app_sequence': ['cutcake_survey_shorter'], # }, # { # 'name': 'cutcake_survey_preference', # 'display_name': "cutcake_survey_preference", # 'num_demo_participants': 1, # 'app_sequence': ['cutcake_survey_preference'], # }, # { # 'name': 'cutcake_practice_cutmiddle', # 'display_name': "cutcake_practice_cutmiddle", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_practice_cutmiddle'], # }, # { # 'name': 'cutcake_practice_cutmiddle_random', # 'display_name': "cutcake_practice_cutmiddle_random", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_practice_cutmiddle_random'], # }, # { # 'name': 'cutcake_practice_IcutUchoose', # 'display_name': "cutcake_practice_IcutUchoose", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_practice_IcutUchoose'], # }, # { # 'name': 'cutcake_practice_IcutUchoose_random', # 'display_name': "cutcake_practice_IcutUchoose_random", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_practice_IcutUchoose_random'], # }, # { # 'name': 'cutcake_practice_bargaining', # 'display_name': "cutcake_practice_bargaining", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_practice_bargaining'], # }, # { # 'name': 'cutcake_practice_bargaining_random', # 'display_name': "cutcake_practice_bargaining_random", # 'num_demo_participants': 2, # 'app_sequence': ['cutcake_practice_bargaining_random'], # }, # { # 'name': 'platform_demo', # 'display_name': "platform_demo", # 'num_demo_participants': 2, # 'app_sequence': ['platform_demo'], # # 'use_browser_bots': True, # }, { 'name': 'consent', 'display_name': "consent", 'num_demo_participants': 10, 'participation_fee': 4, 'current_treatment': 3, 'app_sequence': ['consent'], # 'use_browser_bots': True, }, ] # see the end of this file for the inactive session configs # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' USE_POINTS = True ROOMS = [ { 'name': 'econ101', 'display_name': 'Econ 101 class', 'participant_label_file': '_rooms/econ101.txt', 'use_secure_urls': True, }, { 'name': 'econ102', 'display_name': 'Econ 102 class', 'participant_label_file': '_rooms/econ101.txt', }, { 'name': 'econ103', 'display_name': 'Econ 103 class', 'participant_label_file': '_rooms/econ101.txt', }, { 'name': 'live_demo', 'display_name': 'Room for live demo (no participant labels)', }, ] 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 = '(v)$1o)pen--c!0&t=!xq3y4pwkl)u91p$+-m012y%v8fq7sc%' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] # inactive session configs ### { ### 'name': 'trust', ### 'display_name': "Trust Game", ### 'num_demo_participants': 2, ### 'app_sequence': ['trust', 'payment_info'], ### }, ### { ### 'name': 'prisoner', ### 'display_name': "Prisoner's Dilemma", ### 'num_demo_participants': 2, ### 'app_sequence': ['prisoner', 'payment_info'], ### }, ### { ### 'name': 'ultimatum', ### 'display_name': "Ultimatum (randomized: strategy vs. direct response)", ### 'num_demo_participants': 2, ### 'app_sequence': ['ultimatum', 'payment_info'], ### }, ### { ### 'name': 'ultimatum_strategy', ### 'display_name': "Ultimatum (strategy method treatment)", ### 'num_demo_participants': 2, ### 'app_sequence': ['ultimatum', 'payment_info'], ### 'use_strategy_method': True, ### }, ### { ### 'name': 'ultimatum_non_strategy', ### 'display_name': "Ultimatum (direct response treatment)", ### 'num_demo_participants': 2, ### 'app_sequence': ['ultimatum', 'payment_info'], ### 'use_strategy_method': False, ### }, ### { ### 'name': 'vickrey_auction', ### 'display_name': "Vickrey Auction", ### 'num_demo_participants': 3, ### 'app_sequence': ['vickrey_auction', 'payment_info'], ### }, ### { ### 'name': 'volunteer_dilemma', ### 'display_name': "Volunteer's Dilemma", ### 'num_demo_participants': 3, ### 'app_sequence': ['volunteer_dilemma', 'payment_info'], ### }, ### { ### 'name': 'principal_agent', ### 'display_name': "Principal Agent", ### 'num_demo_participants': 2, ### 'app_sequence': ['principal_agent', 'payment_info'], ### }, ### { ### 'name': 'dictator', ### 'display_name': "Dictator Game", ### 'num_demo_participants': 2, ### 'app_sequence': ['dictator', 'payment_info'], ### }, ### { ### 'name': 'matching_pennies', ### 'display_name': "Matching Pennies", ### 'num_demo_participants': 2, ### 'app_sequence': [ ### 'matching_pennies', ### ], ### }, ### { ### 'name': 'traveler_dilemma', ### 'display_name': "Traveler's Dilemma", ### 'num_demo_participants': 2, ### 'app_sequence': ['traveler_dilemma', 'payment_info'], ### }, ### { ### 'name': 'bargaining', ### 'display_name': "Bargaining Game", ### 'num_demo_participants': 2, ### 'app_sequence': ['bargaining', 'payment_info'], ### }, ### { ### 'name': 'common_value_auction', ### 'display_name': "Common Value Auction", ### 'num_demo_participants': 3, ### 'app_sequence': ['common_value_auction', 'payment_info'], ### }, ### { ### 'name': 'bertrand', ### 'display_name': "Bertrand Competition", ### 'num_demo_participants': 2, ### 'app_sequence': [ ### 'bertrand', 'payment_info' ### ], ### }, ### { ### 'name': 'real_effort', ### 'display_name': "Real-effort transcription task", ### 'num_demo_participants': 1, ### 'app_sequence': [ ### 'real_effort', ### ], ### }, ### { ### 'name': 'lemon_market', ### 'display_name': "Lemon Market Game", ### 'num_demo_participants': 3, ### 'app_sequence': [ ### 'lemon_market', 'payment_info' ### ], ### }, ### { ### 'name': 'public_goods_simple', ### 'display_name': "Public Goods (simple version from tutorial)", ### 'num_demo_participants': 3, ### 'app_sequence': ['public_goods_simple', 'payment_info'], ### }, ### { ### 'name': 'trust_simple', ### 'display_name': "Trust Game (simple version from tutorial)", ### 'num_demo_participants': 2, ### 'app_sequence': ['trust_simple'], ### }, # { # 'name': 'public_goods', # 'display_name': "Public Goods", # 'num_demo_participants': 3, # 'app_sequence': ['public_goods', 'payment_info'], # }, # { # 'name': 'guess_two_thirds', # 'display_name': "Guess 2/3 of the Average", # 'num_demo_participants': 3, # 'app_sequence': ['guess_two_thirds', 'payment_info'], # }, # { # 'name': 'trial', # 'num_demo_participants': 1, # 'app_sequence': ['trail'], # }, # { # 'name': 'survey', # 'num_demo_participants': 1, # 'app_sequence': ['survey'], # }, # { # 'name': 'cutcake_combined', # 'display_name': "cutcake_combined", # 'num_demo_participants': 12, # 'app_sequence': list_Josue, # }, # { # 'name': 'cutcake_combined_shorter', # 'display_name': "cutcake_combined_shorter", # 'num_demo_participants': 6, # 'app_sequence': list_Josue_shorter, # }, # { # 'name': 'cutcake_combined_preference', # 'display_name': "cutcake__combined_preference", # 'num_demo_participants': 2, # 'app_sequence': list_Josue_preference, # },