from os import environ SESSION_CONFIGS = [ # dict( # name='centipede_game_hot', # display_name="Centipede Game: Hot", # app_sequence=['instruction','Hot','survey'], # num_demo_participants=8, # #use_browser_bots=True, # ), # dict( # name='centipede_game_cold', # display_name="Centipede Game: Cold", # app_sequence=['instruction','Cold','survey'], # num_demo_participants=8, # #use_browser_bots=True, # ), # dict( # name='centipede_game_semi_cold', # display_name="Centipede Game: Semi-Cold", # app_sequence=['instruction','Semi_Cold','survey'], # num_demo_participants=8, # #use_browser_bots=True, # ), dict( name='centipede_game_combo', display_name="Centipede Game: ALL", app_sequence=['instruction','Cold','Semi_Cold','Hot','survey'], num_demo_participants=4, #use_browser_bots=True, ), ] # 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, # experiment_time="20:07", #experiment_exact_time="2022-05-15 21:55:00", hot_treatment=1, doc="" ) #total_subject=6 PARTICIPANT_FIELDS = ['drop', 'single', 'page_number','oppo_list', 'payoffs_list', 'oppo_payoffs_list', 'nodes_list','oppo_nodes_list','takes_list','oppo_takes_list'] SESSION_FIELDS = [] # 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='EER_2022_G3', display_name='EER_2022_G3', participant_label_file='_rooms/econ101.txt', use_secure_urls=True ), #dict(name='live_demo', display_name='Room for live demo (no participant labels)'), ] if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: DEBUG = False else: DEBUG = True AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') CHANNEL_ROUTING = 'transcription.routing.channel_routing' DEMO_PAGE_INTRO_HTML = """ This is a two-player six-foot centipede game with various representations. Since the free-of-charge Heroku server is not stable, please refresh the page if an error occurs. """ SECRET_KEY = '9446827812067' INSTALLED_APPS = ['otree']