from os import environ SESSION_CONFIGS = [ dict( name='EyeReal', display_name="实验 1: 眼睛组 EyeReal", num_demo_participants=2, app_sequence=['welcome', 'EyeReal', 'dictator', 'survey_jieyu', 'payment_info' ], condition='Experiment1EyeReal' ), dict( name='FlowerReal', display_name="实验 1: 花朵组 FlowerReal", num_demo_participants=2, app_sequence=['welcome', 'FlowerReal', 'dictator', 'survey_jieyu', 'payment_info' ], condition='Experiment1FlowerReal' ), dict( name='EyeImagine', display_name="实验 2: 眼睛想象组 EyeImagine", num_demo_participants=2, app_sequence=['welcome', 'EyeImagine', 'dictator', 'survey_jieyu', 'payment_info' ], condition='Experiment2EyeImagine' ), dict( name='FlowerImagine', display_name="实验2: 花朵想象组 FlowerImagine", num_demo_participants=2, app_sequence=['welcome', 'FlowerImagine', 'dictator', 'survey_jieyu', 'payment_info' ], condition='Experiment2FlowerImagine' ), # dict( # name='public_goods', # app_sequence=['public_goods', 'payment_info'], # num_demo_participants=3, # ), ## 此处加上实验程序,使用问卷收集。使用开源性软件python的编写。 # dict( # name='manipulationEyeImagine', # display_name="manipulationEyeImagine", # num_demo_participants=2, # app_sequence=['manipulationEyeImagine', # 'manipulationFlowerImagine'] # ), # dict( # name='dictator_game_eye_real', # display_name="独裁者游戏EyeReal", # num_demo_participants=2, # app_sequence=['welcome', # 'EyeReal', # 'dictator_game', # 'survey_jieyu', # 'payment_info'], # condition='EyeReal' # ), # dict( # name='dictator_game_flower_real', # display_name="独裁者游戏FlowerReal", # num_demo_participants=2, # app_sequence=['welcome', # 'FlowerReal', # 'dictator_game', # 'survey_jieyu', # 'payment_info'], # condition='FlowerReal' # ), # dict( # name='dictator_game_eye_Imagine', # display_name="EyeImagine", # num_demo_participants=2, # app_sequence=['welcome', # 'EyeImagine', # 'dictator_game', # 'survey_jieyu', # 'payment_info'], # condition='EyeImagine' # ), # # dict( # name='dictator_game_flower_Imagine', # display_name="FlowerImagine", # num_demo_participants=2, # app_sequence=['welcome', # 'FlowerImagine', # 'dictator_game', # 'survey_jieyu', # 'payment_info'], # condition='FlowerImagine' # ), ] # 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="" ) # 采用这样的设置,可以得到每个房间有一个单独的链接。 # there is a unique link for each room ROOMS = [{ 'name': 'Room1', 'display_name': "房间1", 'participant_label_file': '_rooms/label.txt', }, { 'name': 'Room2', 'display_name': "房间2", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room3', 'display_name': "房间3", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room4', 'display_name': "房间4", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room5', 'display_name': "房间5", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room6', 'display_name': "房间6", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room7', 'display_name': "房间7", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room8', 'display_name': "房间8", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room9', 'display_name': "房间9", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room10', 'display_name': "房间10", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room11', 'display_name': "房间11", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room12', 'display_name': "房间12", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room13', 'display_name': "房间13", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room14', 'display_name': "房间14", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room15', 'display_name': "房间15", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room16', 'display_name': "房间16", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room17', 'display_name': "房间17", 'participant_label_file': '_rooms/label.txt' }, { 'name': 'Room18', 'display_name': "房间18", 'participant_label_file': '_rooms/label.txt' } ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'zh-hans' # e.g. EUR, GBP, CNY, JPY, USD REAL_WORLD_CURRENCY_CODE = 'CNY' USE_POINTS = False #USE_POINTS = 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 = """ """ SECRET_KEY = '1278689012339' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']