from os import environ SESSION_CONFIGS = [ # dict( # name='tradeoff_sep_in_seq', # display_name="Tradeoff Choice List (分离, 顺序, debug)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_sep.py', # random=False, # debug=True # ), # dict( # name='tradeoff_sep_random', # display_name="Tradeoff Choice List (分离, 乱序)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_sep.py', # random=True, # ), # dict( # name='tradeoff_mix_in_seq', # display_name="Tradeoff Choice List (混合, 顺序)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_mix.py', # random=False, # ), dict( name='tradeoff_mix_random', display_name="Tradeoff Choice List (混合,乱序)", num_demo_participants=1, app_sequence=['tradeoff'], table_list='table_list_mix.py', random=True, intro_wait_sec=10, table_wait_sec=5, ), # dict( # name='tradeoff_mix_random_nowait', # display_name="Tradeoff Choice List (混合,乱序,无等待)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_mix.py', # random=True, # intro_wait_sec=0, # table_wait_sec=0, # debug=False # ), # dict( # name='tradeoff_mix_random_nowait_debug', # display_name="Tradeoff Choice List (混合,乱序,无等待, debug)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_mix.py', # random=True, # intro_wait_sec=0, # table_wait_sec=0, # debug=True # ), # dict( # name='tradeoff_test_random_nowait', # display_name="Tradeoff Choice List 测试 (混合,乱序,无等待, debug)", # num_demo_participants=2, # app_sequence=['tradeoff'], # table_list='table_list_test.py', # random=True, # intro_wait_sec=0, # table_wait_sec=0, # debug=True # ), # dict( # name='tradeoff_sample_sep', # display_name="Tradeoff Choice List (小样本, 每第一张表)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_sep_sample.py', # random=False, # debug=True, # ), # dict( # name='tradeoff_sample_sep_2t', # display_name="Tradeoff Choice List (2表,分离,顺序)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_sep_2t.py', # random=False, # ), # dict( # name='tradeoff_sample_sep_2t_no_wait', # display_name="Tradeoff Choice List (2表,分离,顺序,有时间)", # num_demo_participants=1, # app_sequence=['tradeoff'], # table_list='table_list_sep_2t.py', # random=False, # intro_wait_sec=10, # table_wait_sec=5, # ), ] # 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="" ) PARTICIPANT_FIELDS = [] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'zh-hans' # 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='100participants', display_name='100 participants', participant_label_file='_rooms/pc01_100.txt', use_secure_urls=True, ), 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 = '5302961046258' INSTALLED_APPS = ['otree']