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'] SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.0025, 'participation_fee': 0, 'doc': "", 'prolific_reward': 4.5, # This is the Prolific reward which is not part of the bonus payment accrued through oTree } SESSION_CONFIGS = [ { 'name': 'StartPage', 'display_name': "Start Page", 'num_demo_participants': 3, 'app_sequence': ['StartPage'], }, { 'name': 'AbilityMath', 'display_name': "Ability Math", 'num_demo_participants': 3, 'app_sequence': ['AbilityMath'], }, { 'name': 'AbilityCode', 'display_name': "Ability Code", 'num_demo_participants': 3, 'app_sequence': ['AbilityCode'], }, { 'name': 'EndogAttention', 'display_name': "Endog Attention", 'num_demo_participants': 3, 'app_sequence': ['AttentionAllocation'], }, { 'name': 'MPL', 'display_name': "MPL", 'num_demo_participants': 3, 'app_sequence': ['MPL'], }, { 'name': 'WTP_Sequence', 'display_name': "WTP_Sequence", 'num_demo_participants': 3, 'app_sequence': ['WTP_Sequence'], }, { 'name': 'WTP_Treatment', 'display_name': "WTP and Treatment", 'num_demo_participants': 3, 'app_sequence': ['WTP_Sequence','Treatment'], }, { 'name': 'survey', 'display_name': "Survey", 'num_demo_participants': 3, 'app_sequence': ['survey'], }, { 'name': 'Results', 'display_name': "Results", 'num_demo_participants': 3, 'app_sequence': ['Results'], 'completionlink': 'https://www.nytimes.com/', }, { 'name': 'FullStudy', 'display_name': "Full Study wo participant links", 'num_demo_participants': 3, 'app_sequence': ['AbilityMath','AbilityCode','AttentionAllocation','WTP_Sequence','Treatment','survey','Results'], 'completionlink': 'https://www.nytimes.com/', }, { 'name': 'EACR', 'display_name': "EACR Full Study", 'num_demo_participants': 3, 'app_sequence': ['StartPage','AbilityMath','AbilityCode','AttentionAllocation','WTP_Sequence','Treatment','survey','Results'], 'completionlink': 'https://www.nytimes.com/', }, ] # 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 ROOMS = [ dict( name='EACR2402', display_name='EACR2402', #participant_label_file='_rooms/test_prolific_ids.txt', #use_secure_urls=True, #Apparently does not work together with giving the room-wide urls ), dict( name='EACR2402_test', display_name='EACR2402_test', participant_label_file='_rooms/test_prolific_ids.txt', #use_secure_urls=True, #Apparently does not work together with giving the room-wide urls ) ] ADMIN_USERNAME = 'admin55' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '@xqs3%xu&#i8)@b3xjwjl@2)97b4%j9ou=b*cxy&n6q2iomc20' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']