from os import environ SESSION_CONFIGS = [ dict( name="Dictator", display_name="Full_trail", num_demo_participants=5, app_sequence=['intro','Avatarmaker','writing','dictator','survey'], who = "dictator", smallpaylink = "https://www.youtube.com/watch?v=XqZsoesa55w&list=RDXqZsoesa55w&start_radio=1", bigpaylink = "https://www.youtube.com/watch?v=JxS5E-kZc2s", prolific_completion_url="https://www.youtube.com/", real_world_currency_per_point=1 / 200, participation_fee=2.25, time=15, trail= 2, doc = """, 'who' options: dictator, receiver trail = 0: real, 1 for dictator pilot test, 2 for full test """ ), dict( name="Dictator1", display_name="Real_experiment", num_demo_participants=5, app_sequence=['intro','Avatarmaker','writing','dictator','survey'], who = "dictator", smallpaylink = "https://www.youtube.com/watch?v=XqZsoesa55w&list=RDXqZsoesa55w&start_radio=1", bigpaylink = "https://www.youtube.com/watch?v=JxS5E-kZc2s", prolific_completion_url="https://www.youtube.com/", real_world_currency_per_point=1 / 200, participation_fee=2.25, time=15, trail= 0, doc = """, 'who' options: dictator, receiver trail = 0: real, 1 for dictator pilot test, 2 for full test """ ), dict( name="Receivers", display_name="Receivers", num_demo_participants=5, app_sequence=['Avatarmaker'], who = "receiver", smallpaylink = "https://www.youtube.com/watch?v=XqZsoesa55w&list=RDXqZsoesa55w&start_radio=1", bigpaylink = "https://www.youtube.com/watch?v=JxS5E-kZc2s", prolific_completion_url = "https://www.youtube.com/", real_world_currency_per_point=1 / 200, participation_fee=0.75, time=5, trail= 0, doc = """, ''who' options: dictator, receiver trail = 0: real, 1 for dictator pilot test, 2 for full test """ ), dict( name="Trail_Dictator", display_name="Pilot_dictator", num_demo_participants=5, app_sequence=['Avatarmaker','dictator'], who = "dictator", smallpaylink = "https://www.youtube.com/watch?v=XqZsoesa55w&list=RDXqZsoesa55w&start_radio=1", bigpaylink = "https://www.youtube.com/watch?v=JxS5E-kZc2s", prolific_completion_url="https://www.youtube.com/", time=6, trail= 1, real_world_currency_per_point=1/300, participation_fee=0.9, doc = """, 'who' options: dictator, receiver trail = 1 or 0 """ ) ] # 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 = dict( real_world_currency_per_point=0.01, participation_fee=3.3, time=6, ) PARTICIPANT_FIELDS = ['QoB','country_of_birth','first_language','genderSelect', 'is_dropout','top','expiry','hair','background','topcolor','total_cost','treatment_gender','finished','pay_status','rich_poor_treatment'] SESSION_FIELDS = ['params','prolific_completion_url'] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'GBP' USE_POINTS = True OTREE_PRODUCTION=0 LANGUAGE_CODE = 'en' ROOMS = [ dict(name='Decision_making_1', display_name='Room1'), dict(name='Decision_Making_2', display_name='Room2'), dict(name='Decision_Making_3', display_name='Room3'), dict(name='Decision_Making_4', display_name='Room4'), ] ADMIN_USERNAME = 'Mia' # 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. """ SECRET_KEY = '5076249779310' INSTALLED_APPS = ['otree']