from os import environ SESSION_CONFIGS = [ dict( name='treatment1', display_names="实验组1", num_demo_participants=5, app_sequence=['surveyTreatment','addTreatment',"treatSurvey"] ), dict( name='treatment2', display_names="实验组2", num_demo_participants=5, app_sequence=['surveyTreatment','addTreatment2',"treatSurvey"] ), dict( name='treatment3', display_names="实验组3", num_demo_participants=5, app_sequence=['surveyTreatment','addTreatment3',"treatSurvey"] ), dict( name='treatment4', display_names="实验组4", num_demo_participants=5, app_sequence=['surveyTreatment','addTreatment4',"treatSurvey"] ), dict( name = "control", display_names = "对照组", num_demo_participants = 5, app_sequence=['surveyControl',"shop"] ) # dict( # name='final', # display_names="实验组", # num_demo_participants=3, # app_sequence=['treatSurvey'] # ), ] # 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="" ) # 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='econ1', display_name='Experimental Lab', participant_label_file='_rooms/econ101.txt' ), ] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = '123' DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = 'j_$)o1%j_evmedai_+#%89i#kr%m9y0a@ck0(6776$$$an142d' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] # DEBUG = False # OTREE_PRODUCTION = 1