from os import environ import otree SESSION_CONFIGS = [ dict( name='game_theory', display_name="Game Theory", app_sequence=['general_info', 'survey', 'prisoner', 'dictator', 'ultimatum', 'trust', 'payment_info'], num_demo_participants=4, ), dict( name='market', display_name="Market game", app_sequence=['double_auction_baseline', 'double_auction_buyer_adv', 'double_auction_seller_adv', 'double_auction_same_val','payment_info'], num_demo_participants=10 ), dict( name='public_goods_punishment', display_name="Public Goods with Punishment", app_sequence=['public_goods_without_punishment','public_goods_punishment', 'payment_info'], num_demo_participants=4, ), ] # 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=10000, participation_fee=0.00, doc="", market_scenario=2 # can be 1 or 2 ) PARTICIPANT_FIELDS = ['earning', 'role', 'score', 'trial'] SESSION_FIELDS = ['task_params'] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'VND' USE_POINTS = True ROOMS = [ dict( name='econ1', display_name='Principles of Economics 1', participant_label_file='_rooms/econ1.txt', use_secure_urls=True, ), dict( name='QR', display_name='QR class', participant_label_file='_rooms/QR-Spring22.txt', use_secure_urls=True, ), dict( name='Econ101F22', display_name='Principles of Economics 1 Fall 2022', participant_label_file='_rooms/Econ101-Fall22.txt', use_secure_urls=True, ), dict( name='Econ101S23', display_name='Principles of Economics 1 Spring 2023', participant_label_file='_rooms/Econ101-Spring23.txt', use_secure_urls=True, ), dict( name='Econ101F23S1', display_name='Principles of Economics 1 Fall 2023 Session 1', participant_label_file='_rooms/Econ101-Fall23-S01.txt', use_secure_urls=True, ), dict( name='Econ101F23S2', display_name='Principles of Economics 1 Fall 2023 Session 2', participant_label_file='_rooms/Econ101-Fall23-S02.txt', use_secure_urls=True, ), dict( name='Econ101F23S3', display_name='Principles of Economics 1 Fall 2023 Session 3', participant_label_file='_rooms/Econ101-Fall23-S03.txt', use_secure_urls=True, ), dict( name='test', display_name='Test', participant_label_file='_rooms/bottest.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. """ SECRET_KEY = '4815211390802' INSTALLED_APPS = ['otree']