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'] SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.05, 'participation_fee': 1.10, 'doc': "", 'mturk_hit_settings': { 'keywords': ['bonus', 'study'], 'title': 'Title for your experiment', 'description': 'Description for your experiment', 'frame_height': 500, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 60, 'expiration_hours': 7*24, # 7 days 'grant_qualification_id': '30IMA0M1DAGKN7KKY77JM2SI08YUON',# to prevent retakes 'qualification_requirements': { 'QualificationTypeId':"30IMA0M1DAGKN7KKY77JM2SI08YUON", 'Comparator': "DoesNotExist" } }, } SESSION_CONFIGS = [ { 'name': 'tg2021_v1', 'num_demo_participants': 10, 'app_sequence': ['tg2021'], }, #{ # 'name': 'endo', # 'display_name': "endo", # 'num_demo_participants': 5, # 'app_sequence': ['p3_endo3'], #}, ] # see the end of this file for the inactive session configs # 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 POINTS_DECIMAL_PLACES = 0 POINTS_CUSTOM_NAME = 'ยง' ROOMS = [ { 'name': 'tg2021', 'display_name': 'May2021', # 'participant_label_file': '_rooms/econ101.txt', }, { '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. """ # don't share this with anybody. SECRET_KEY = '5-vsi6^bry_nvg3-m^gzh2i2j=fad4hersb=a(04fh9+@vk*5q' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] # inactive session configs ### { ### 'name': 'trust', ### 'display_name': "Trust Game", ### 'num_demo_participants': 2, ### 'app_sequence': ['trust', 'payment_info'], ### }, ### { ### 'name': 'prisoner', ### 'display_name': "Prisoner's Dilemma", ### 'num_demo_participants': 2, ### 'app_sequence': ['prisoner', 'payment_info'], ### }, ### { ### 'name': 'ultimatum', ### 'display_name': "Ultimatum (randomized: strategy vs. direct response)", ### 'num_demo_participants': 2, ### 'app_sequence': ['ultimatum', 'payment_info'], ### }, ALLOWED_HOSTS = ['.herokuapp.com','localhost'] AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY')