# import token from os import environ # 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'] # if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: DEBUG = False else: DEBUG = True DEBUG = False # for flexibility, you can set it in the environment variable OTREE_AUTH_LEVEL AUTH_LEVEL = environ.get('OTREE_AUTH_LEVEL') # setting for integration with AWS Mturk AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') ROOMS = [ { 'name': 'WHU_AIPolice', 'display_name': 'WHU_AIPolice', 'participant_label_file': '_rooms/whu1.txt', }, { 'name': 'live_demo', 'display_name': 'Room for live demo (no participant labels)', }, ] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=0.33, participation_fee=20.00, doc="" ) SESSION_CONFIGS = [ { 'name': 'Baseline', 'display_name': "Treatment-1-Baseline", 'num_demo_participants': 4, 'app_sequence': [ 'first_page', 'cc_type', 'pgg_test', 'pgg', 'survey', 'payment_info', ], 'participation_fee': 20.00, 'treatment': 'Baseline', }, { 'name': 'SocialScore', 'display_name': "Treatment-2-SocialScore", 'num_demo_participants': 4, 'app_sequence': [ 'first_page', 'cc_type', 'pgg_test', 'pgg', 'survey', 'payment_info', ], 'participation_fee': 20.00, 'treatment': 'SocialScore', }, { 'name': 'SocialScorePunish', 'display_name': "Treatment-3-SocialScorePunish", 'num_demo_participants': 4, 'app_sequence': [ 'first_page', 'cc_type', 'pgg_test', 'pgg', 'survey', 'payment_info', ], 'participation_fee': 20.00, 'treatment': 'SocialScorePunish', }, { 'name': 'SocialScorePunishRank', 'display_name': "Treatment-4-SocialScorePunishRank", 'num_demo_participants': 4, 'app_sequence': [ 'first_page', 'cc_type', 'pgg_test', 'pgg', 'survey', 'payment_info', ], 'participation_fee': 20.00, 'treatment': 'SocialScorePunishRank', }, { 'name': 'AIScore', 'display_name': "Treatment-5-AIScore", 'num_demo_participants': 4, 'app_sequence': [ 'first_page', 'cc_type', 'pgg_test', 'pgg', 'survey', 'payment_info', # 'pgg', ], 'participation_fee': 20.00, 'treatment': 'AIScore', }, { 'name': 'AIScorePunish', 'display_name': "Treatment-6-AIScorePunish", 'num_demo_participants': 4, 'app_sequence': [ 'first_page', 'cc_type', 'pgg_test', 'pgg', 'survey', 'payment_info', ], 'participation_fee': 20.00, 'treatment': 'AIScorePunish', }, ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'zh-hans' # 翻译完成后需要改为中文 LANGUAGE_CODE = 'zh-hans' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'CNY' USE_POINTS = True POINTS_DECIMAL_PLACES = 2 POINTS_CUSTOM_NAME = "代币" 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 = 'li5)qc@g4z8t&j2&_68*g2up)-3&!f8^@i9+0-6_x^my!k7-(n' # if an app is included in SESSION_CONFIGS, you don't need to list it INSTALLED_APPS = ['otree']