from os import environ SESSION_CONFIGS = [ dict( name='30_round_Treatment_1', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, doc=""" This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='30_round_Treatment_2', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=False, anonymous=True, treatment=2, doc=""" This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='30_round_Treatment_3', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=True, anonymous=False, treatment=3, doc=""" This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='30_round_Treatment_4', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=True, anonymous=True, treatment=4, doc=""" This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='bots_30_round_Treatment_1', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True, doc=""" BOTS ARE ENABLED This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='bots_30_round_Treatment_2', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=False, anonymous=True, treatment=2, use_browser_bots=True, doc=""" BOTS ARE ENABLED This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='bots_30_round_Treatment_3', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=True, anonymous=False, treatment=3, use_browser_bots=True, doc=""" BOTS ARE ENABLED This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='bots_30_round_Treatment_4', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=True, anonymous=True, treatment=4, use_browser_bots=True, doc=""" BOTS ARE ENABLED This session is designed to be played with 8 players only. Settings are pre-configured, they don't require any additional configuration. """ ), dict( name='dev_only_mainflow', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1 ), dict( name='dev_only_pregame_feauture', app_sequence=['welcome', 'understanding_quiz'], num_demo_participants=8, incentives=True, anonymous=False, treatment=3, ), dict( name='dev_only_game_only', app_sequence=['game'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, real_world_currency_per_point=0.5 ), dict( name='dev_only_postgame_feauture', app_sequence=['game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=True, anonymous=False, treatment=3, ), dict( name='dev_only_game_payoff', app_sequence=['game', 'payment_info'], num_demo_participants=8, incentives=True, anonymous=False, treatment=3, ), dict( name='dev_only_Post_Questions', app_sequence=['post_questions'], num_demo_participants=8, incentives=True, anonymous=False, treatment=3 ), dict( name='bots_welcome', app_sequence=['welcome'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True ), dict( name='bots_understanding_quiz', app_sequence=['understanding_quiz'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True ), dict( name='bots_game', app_sequence=['game'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True ), dict( name='bots_post_questions', app_sequence=['post_questions'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True ), dict( name='bots_payment_info', app_sequence=['payment_info'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True ), dict( name='bots_welcome_understanding_quiz_game', app_sequence=['welcome', 'understanding_quiz', 'game'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, use_browser_bots=True ), dict( name='bots_full', app_sequence=['welcome', 'understanding_quiz', 'game', 'post_questions', 'payment_info'], num_demo_participants=8, incentives=False, anonymous=False, treatment=1, 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'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc="", ) PARTICIPANT_FIELDS = ['cue_quality', 'error_messages', 'bonus_totals', 'BonusPayout', 'ChosenRound_1', 'ChosenRound_2', 'ChosenRound_3', 'calulated_final_payoff' ] SESSION_FIELDS = ['incentives', 'anonymous', 'treatment'] # 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 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 = """ """ SECRET_KEY = '1212312312' ROOMS = [ dict( name='belab_1', display_name='Belab Room 1', participant_label_file='_rooms/belab_1.txt' ) ]