from os import environ SESSION_CONFIGS = [ { 'name': '2Lights_T1', 'display_name': "2Lights_T1", 'ravens_payoff_per_question': 15, # points for each correct answer 'num_demo_participants': 100, # or 4 if you prefer 'app_sequence': [ 'Consent', 'Combined_2lights', 'Pay', 'Redirect', #'Combined_2lights', 'Pay', 'Redirect', ], 'participation_fee': 3.00, 'real_world_currency_per_point': 3.00, 'doc': """ Raven's Progressive Matrices only """, }, { 'name': '2Lights_T1_TRIAL', 'display_name': "2Lights_T1_TRIAL", 'ravens_payoff_per_question': 15, # points for each correct answer 'num_demo_participants': 1, # or 4 if you prefer 'app_sequence': [ 'Consent', 'Combined_2lights', 'Pay', 'Redirect', #'Combined_2lights', 'Pay', 'Redirect' ], 'participation_fee': 3.00, 'real_world_currency_per_point': 3.00, 'doc': """ Raven's Progressive Matrices only """, }, { 'name': '3Lights_T1', 'display_name': "3Lights_T1", 'ravens_payoff_per_question': 15, 'num_demo_participants': 100, 'app_sequence': [ 'Combined_3lights', 'Pay', 'Redirect' ], 'participation_fee': 3.20, 'real_world_currency_per_point': 3.20, 'doc': """ 3-light experiment with Raven's test """, }, { 'name': '3Lights_T1_TRIAL', 'display_name': "3Lights_T1_TRIAL", 'ravens_payoff_per_question': 15, 'num_demo_participants': 1, 'app_sequence': [ 'Combined_3lights', 'Pay', 'Redirect' ], 'participation_fee': 3.20, 'real_world_currency_per_point': 3.20, 'doc': """ 3-light experiment with Raven's test """, } ] ROOMS = [ dict( name='econ_lab', display_name='Lab', ) ] # 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=2.00, participation_fee=10.00, doc="" ) PARTICIPANT_FIELDS = ['notes', 'cases_ordered', 'realized_cases', 'light_list', 'guesses', 'order_names', 'sound', 'current_case', 'original_color', 'guess_values', 'guess_configs', 'correct_predictions'] 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 = 'GBP' USE_POINTS = False 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 = '2516807391076' INSTALLED_APPS = ['otree']