from os import environ SESSION_CONFIGS = [ dict( name='room_assignement', display_name="Room assignement", app_sequence=['room_assignement'], num_demo_participants=30, participants_per_treatment = 3, ), dict( name='CopyTheStyle4', display_name="CopyTheStyle rubis", app_sequence=['CopyTheStyle_rubis'], num_demo_participants=24, NUM_ROUNDS = 1, treatment = 1 ), dict( name='CopyTheStyle3', display_name="CopyTheStyle switch", app_sequence=['CopyTheStyle_switch'], num_demo_participants=24, NUM_ROUNDS = 1, treatment = 1 ), dict( name='CopyTheStyle2', display_name="CopyTheStyle remove", app_sequence=['CopyTheStyle_drag'], num_demo_participants=24, NUM_ROUNDS = 1, treatment = 1 ), dict(name='CopyTheStyleOnlyRule', display_name="CopyTheStyle Only Rule", app_sequence=['CopyTheStyle_only_rule'], num_demo_participants=10, NUM_ROUNDS = 1, treatment = 1 ), # dict( # name='schelling', # display_name="Online experiment", # app_sequence=['guess_two_thirds', 'payment_info'], # num_demo_participants=6, # NUM_ROUNDS = 1, # treatment = 1 # ), dict( name='CopyTheStyle_without_rule', display_name="CopyTheStyle without rule", app_sequence=['CopyTheStyle'], num_demo_participants=24, NUM_ROUNDS = 1, treatment = 1 ), dict( name='CopyTheStyle_with_rule_ex', display_name="CopyTheStyle with rule and example", app_sequence=['CopyTheStyle'], num_demo_participants=24, NUM_ROUNDS = 1, treatment = 2 ), dict( name='CopyTheStyle_without_ex', display_name="CopyTheStyle without example", app_sequence=['CopyTheStyle'], num_demo_participants=6, NUM_ROUNDS = 30, treatment = 3 ), # dict( # name='schellingMemP', # display_name="Online experiment with Memory, PRODUCT", # app_sequence=['OnlineExpMemory', 'payment_info'], # num_demo_participants=6, # NUM_ROUNDS = 1, # treatment = 1 # ), # dict( # name='schellingMemR', # display_name="Online experiment with Memory, RULE", # app_sequence=['OnlineExpMemory', 'payment_info'], # num_demo_participants=6, # NUM_ROUNDS = 1, # treatment = 2 # ), # dict( # name='schellingMemPR', # display_name="Online experiment with Memory, RULE+PRODUCT", # app_sequence=['OnlineExpMemory', 'payment_info'], # num_demo_participants=6, # NUM_ROUNDS = 1, # treatment = 3 # ), # dict( # name='sequential', app_sequence=['sequential'], num_demo_participants=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 = [ 'finished', 'MAT_OBJ','MAT_INIT', 'final', 'RULE' ] SESSION_FIELDS = ['prolific_completion_url', 'chains', 'players_per_treatment', 'treatment_counts', 'indiv_learners', 'open_spots', 'social_learners' ] # 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='Pilot1', display_name='Pilot Room 1', participant_label_file='_rooms/pilot1.txt', ), dict( name='Pilot2', display_name='Pilot Room 2', participant_label_file='_rooms/pilot2.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 = '9893652503709' INSTALLED_APPS = ['otree']