from os import environ # 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="" ) SESSION_CONFIGS = [ dict( name='Control', display_name='Control', num_demo_participants=10, app_sequence=['Instructions', 'WTP', 'WTP_c', 'KA', 'Information', 'Results'], real_world_currency_per_point=0.01, participation_fee=10, Rooms=True ), dict( name='Future', display_name='Future', num_demo_participants=10, app_sequence=['Instructions', 'Pres_b', 'WTP', 'Pres_c', 'WTP_c', 'Reminder', 'KA', 'Information', 'Serving', 'Serving_c', 'Judging', 'Results'], real_world_currency_per_point=0.01, participation_fee=10, Rooms=True ), dict( name='Past', display_name='Past', num_demo_participants=10, app_sequence=['Instructions', 'Serving', 'WTP', 'Serving_c', 'WTP_c', 'KA', 'Judging', 'Information', 'Results'], real_world_currency_per_point=0.01, participation_fee=10, Rooms=True ), dict( name='Lottery', display_name='Lottery', num_demo_participants=10, app_sequence=['Instructions', 'Lottery', 'Serving', 'WTP', 'Serving_c', 'WTP_c', 'KA', 'Judging', 'Information', 'Results'], real_world_currency_per_point=0.01, participation_fee=10, Rooms=True ), ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'CHF' USE_POINTS = True ROOMS = [ dict( name='Meat_Lab', display_name='Room', participant_label_file='_rooms/Info_exp.txt', use_secure_urls=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 = """ Here are some oTree games. """ # don't share this with anybody. SECRET_KEY = '*ynd3@_3r8npefq=u(o+g7s7j)jom@f4u%izsxm-$&q#8$uxi-' INSTALLED_APPS = ['otree'] # inactive session configs # dict(name='trust', display_name="Trust Game", num_demo_participants=2, app_sequence=['trust', 'payment_info']), # dict(name='prisoner', display_name="Prisoner's Dilemma", num_demo_participants=2, # app_sequence=['prisoner', 'payment_info']), # dict(name='volunteer_dilemma', display_name="Volunteer's Dilemma", num_demo_participants=3, # app_sequence=['volunteer_dilemma', 'payment_info']), # dict(name='cournot', display_name="Cournot Competition", num_demo_participants=2, app_sequence=[ # 'cournot', 'payment_info' # ]), # dict(name='dictator', display_name="Dictator Game", num_demo_participants=2, # app_sequence=['dictator', 'payment_info']), # dict(name='matching_pennies', display_name="Matching Pennies", num_demo_participants=2, app_sequence=[ # 'matching_pennies', # ]), # dict(name='traveler_dilemma', display_name="Traveler's Dilemma", num_demo_participants=2, # app_sequence=['traveler_dilemma', 'payment_info']), # dict(name='bargaining', display_name="Bargaining Game", num_demo_participants=2, # app_sequence=['bargaining', 'payment_info']), # dict(name='common_value_auction', display_name="Common Value Auction", num_demo_participants=3, # app_sequence=['common_value_auction', 'payment_info']), # dict(name='bertrand', display_name="Bertrand Competition", num_demo_participants=2, app_sequence=[ # 'bertrand', 'payment_info' # ]), # dict(name='public_goods_simple', display_name="Public Goods (simple version from tutorial)", # num_demo_participants=3, app_sequence=['public_goods_simple', 'payment_info']), # dict(name='trust_simple', display_name="Trust Game (simple version from tutorial)", num_demo_participants=2, # app_sequence=['trust_simple']), # dict(name='live_demo', display_name='Room for live demo (no participant labels)'),