from os import environ 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'], num_demo_participants=40 ), dict( name='public_goods_punishment', display_name="Public Goods with Punishment", app_sequence=['public_goods_punishment'], 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, ), ] 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']