from os import environ SESSION_CONFIGS = [ dict(name='helping_choice', display_name="Helping Behavior - Employee - No bonus/Unobservable", app_sequence=['helping_choice_employee', 'helping_choice_employee_task'], num_demo_participants=4, condition=1 ), dict(name='helping_choice2', display_name="Helping Behavior - Employee - No bonus/Observable", app_sequence=['helping_choice_employee', 'helping_choice_employee_task'], num_demo_participants=4, condition=2 ), dict(name='helping_choice3', display_name="Helping Behavior - Employee - Bonus/Unobservable", app_sequence=['helping_choice_employee', 'helping_choice_employee_task'], num_demo_participants=4, condition=3 ), dict(name='helping_choice4', display_name="Helping Behavior - Employee - Bonus/Observable", app_sequence=['helping_choice_employee', 'helping_choice_employee_task'], num_demo_participants=4, condition=4 ), dict(name='helping_choice_mgr', display_name="Helping Behavior - Manager - No bonus/Unobservable", app_sequence=['helping_choice_manager'], num_demo_participants=1, condition=1 ), dict(name='helping_choice_mgr2', display_name="Helping Behavior - Manager - No bonus/Observable", app_sequence=['helping_choice_manager'], num_demo_participants=1, condition=2 ), dict(name='helping_choice_mgr3', display_name="Helping Behavior - Manager - Bonus/Unobservable", app_sequence=['helping_choice_manager'], num_demo_participants=1, condition=3 ), dict(name='helping_choice_mgr4', display_name="Helping Behavior - Manager - Bonus/Observable", app_sequence=['helping_choice_manager'], num_demo_participants=1, condition=4 ), dict(name='sp_helping_choice', display_name="(Single Period) Helping Behavior - Employee - No bonus/Unobservable", app_sequence=['helping_choice_employee_sp', 'helping_choice_employee_task_sp'], num_demo_participants=4, condition=1 ), dict(name='sp_helping_choice2', display_name="(Single Period) Helping Behavior - Employee - No bonus/Observable", app_sequence=['helping_choice_employee_sp', 'helping_choice_employee_task_sp'], num_demo_participants=4, condition=2 ), dict(name='sp_helping_choice3', display_name="(Single Period) Helping Behavior - Employee - Bonus/Unobservable", app_sequence=['helping_choice_employee_sp', 'helping_choice_employee_task_sp'], num_demo_participants=4, condition=3 ), dict(name='sp_helping_choice4', display_name="(Single Period) Helping Behavior - Employee - Bonus/Observable", app_sequence=['helping_choice_employee_sp', 'helping_choice_employee_task_sp'], num_demo_participants=4, condition=4 ), dict(name='sp_helping_choice_mgr', display_name="(Single Period) Helping Behavior - Manager - No bonus/Unobservable", app_sequence=['helping_choice_manager_sp'], num_demo_participants=1, condition=1 ), dict(name='sp_helping_choice_mgr2', display_name="(Single Period) Helping Behavior - Manager - No bonus/Observable", app_sequence=['helping_choice_manager_sp'], num_demo_participants=1, condition=2 ), dict(name='sp_helping_choice_mgr3', display_name="(Single Period) Helping Behavior - Manager - Bonus/Unobservable", app_sequence=['helping_choice_manager_sp'], num_demo_participants=1, condition=3 ), dict(name='sp_helping_choice_mgr4', display_name="(Single Period) Helping Behavior - Manager - Bonus/Observable", app_sequence=['helping_choice_manager_sp'], num_demo_participants=1, condition=4 ), dict( name='effort_choice1', display_name="Effort/Contract Frame (Bonus)", app_sequence=['effort_choice'], num_demo_participants=1, condition=1 ), dict( name='effort_choice2', display_name="Effort/Contract Frame (Penalty)", app_sequence=['effort_choice'], num_demo_participants=1, condition=2 ), dict( name='effort_choice3', display_name="Effort/Contract Frame (Combined)", app_sequence=['effort_choice'], num_demo_participants=1, condition=3 ), dict( name='effort_choice_ind_1', display_name="Effort/Contract Frame - Uncertain End (Bonus)", app_sequence=['effort_choice_indefinite'], num_demo_participants=1, condition=1 ), dict( name='effort_choice_ind_2', display_name="Effort/Contract Frame - Uncertain End (Penalty)", app_sequence=['effort_choice_indefinite'], num_demo_participants=1, condition=2 ), dict( name='effort_choice_ind_3', display_name="Effort/Contract Frame - Uncertain End (Combined)", app_sequence=['effort_choice_indefinite'], num_demo_participants=1, condition=3 ) ] # 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 = ['practice_num_decoded', 'wait_page_arrival'] SESSION_FIELDS = [] # 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 ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(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. """ SECRET_KEY = '1510785788078' INSTALLED_APPS = ['otree']