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'] mturk_hit_settings = { 'keywords': ['reward','bonus', 'study'], 'title': 'Forecasting experiment (~15 min) | For desktop only', 'description': 'We are conducting research on decision making. During the experiment, your task is to make forecasting judgments and answer a questionnaire. No prior knowledge in forecasting is required. Participation will take approximately 10 minutes and you will be paid a participation fee of 0.5 USD plus a bonus based on your forecasting performance. The average bonus payment is 0.5 USD.', 'frame_height': 800, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 30, 'expiration_hours': 96, # 7 days 'grant_qualification_id': '30YN3SB4AQK0ZLDI70IWX9DOCYJ02K', 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [100] }, { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [99], }, { 'QualificationTypeId': "30YN3SB4AQK0ZLDI70IWX9DOCYJ02K", 'Comparator': "DoesNotExist", }, ] } SESSION_CONFIG_DEFAULTS = { 'mturk_hit_settings': mturk_hit_settings, 'real_world_currency_per_point': 1.00, 'participation_fee': 0.50, 'doc': "", } SESSION_CONFIGS = [ { 'name': 'judgmental', 'display_name': "judgmental", 'num_demo_participants': 50, 'app_sequence': ['Training', 'Round'], } ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' TIME_ZONE = 'UTC' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True POINTS_DECIMAL_PLACES = 2 POINTS_CUSTOM_NAME = 'dollars' ROOMS = [] AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') # for security, best to set admin password in an environment variable ADMIN_USERNAME = 'MSK' ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = environ.get('OTREE_SECRET_KEY') #SECRET_KEY = 'z)qegxpmobxcoi-e&dvkhoqmt1b*cur382(6z1=48d3vf*l2-k' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree',]