from os import environ SESSION_CONFIGS = [ dict( name='week1_beauty_contest', display_name="Week 1: Beauty Contest", num_demo_participants=3, app_sequence=['week1_beauty_contest'], ), dict( name='week4_1st_auction', display_name='Week 4: 1st Auction', num_demo_participants=3, app_sequence=['week4_1st_auction'], ), dict( name='week4_english_auction', display_name='Week 4: English Auction', num_demo_participants=3, app_sequence=['week4_english_auction'], ), dict( name='week4_2nd_auction', display_name='Week 4: 2nd Auction', num_demo_participants=3, app_sequence=['week4_2nd_auction'], ), dict( name='week4_dutch_auction', display_name='Week 4: Dutch Auction', num_demo_participants=3, app_sequence=['week4_dutch_auction'], ), dict( name='week4_all_pay_auction', display_name='Week 4: All Pay Auction', num_demo_participants=3, app_sequence=['week4_all_pay_auction'], ), dict( name='week5_principal_agent', display_name="Week 5: Principal Agent", num_demo_participants=2, app_sequence=['week5_principal_agent'], ), dict( name='week5_principal_agent_2', display_name="Week 5: Principal Agent 2", num_demo_participants=2, app_sequence=['week5_principal_agent_2'], ), dict( name='week5_principal_agent_3', display_name="Week 5: Principal Agent 3", num_demo_participants=2, app_sequence=['week5_principal_agent_3'], ), dict( name='week6_adverse_selection', display_name="Week 6: Adverse Selection", num_demo_participants=3, app_sequence=['week6_adverse_selection'], ), dict( name='week8_collective_action_problem', display_name="Week 8: Collective Action Problem", num_demo_participants=4, app_sequence=['week8_collective_action_problem'], ), dict( name='week9_mixed_strategies', display_name="Week 9: Mixed Strategies", num_demo_participants=2, app_sequence=['week9_mixed_strategies'], ), ] # 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="" ) # 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 = "django-insecure-)%=7!j4=_3mpk42!m_*r@$=izqwy6b#@vlnbo@ni46!8scv3jp" INSTALLED_APPS = ["otree"]