from os import environ SESSION_CONFIGS = [ dict( name='nol_6', display_name='[NoL_6] No Leader Treatment: Making Choice in Groups of 6, without a Supervisor.', app_sequence=['nol_6', 'questionnaires_nol_6'], num_demo_participants=30, ), dict( name='l_6', display_name='[L_6] Leader Treatment: Making Choice in Groups of 6, with a Supervisor.', app_sequence=['l_6', 'questionnaires_l_6'], num_demo_participants=36, ), dict( name='inl_6', display_name='[InL_6] In-group Leader Treatment: Making Choice in Groups of 6, with a Supervisor.', app_sequence=['inl_6', 'questionnaires'], num_demo_participants=12, ), dict( name='outl_6', display_name='[OutL_6] Out-group Leader Treatment: Making Choice in Groups of 6, with a (swapped) Supervisor.', app_sequence=['outl_6', 'questionnaires'], num_demo_participants=12, ), dict( name='majl_6', display_name='[MajL_6] Majority Leader Treatment: Making Choice in Groups of 6, with a swapped worker.', app_sequence=['majl_6', 'questionnaires'], num_demo_participants=12, ), dict( name='minl_6', display_name='[MinL_6] Minority Leader Treatment: Making Choice in Groups of 6, with a swapped Supervisor and one worker.', app_sequence=['minl_6', 'questionnaires'], num_demo_participants=12, ), dict( name='questionnaires', display_name='Questionnaires and Demographic Survey.', app_sequence=['questionnaires',], num_demo_participants=12, ), dict( name='questionnaires_l_6', display_name='[For L_6] Questionnaires and Demographic Survey.', app_sequence=['questionnaires_l_6',], num_demo_participants=12, ), dict( name='questionnaires_nol_6', display_name='[For NoL_6] Questionnaires and Demographic Survey.', app_sequence=['questionnaires_nol_6',], num_demo_participants=12, ), ] # 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.50, participation_fee=10.00, doc="" ) PARTICIPANT_FIELDS = ['part_1_payoff', 'part_2_payoff', 'part_3_payoff', 'payoff_round', 'previous_app', 'player_role', 'player_group_color'] 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 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 = '7406171677047'