from os import environ OTREE_PRODUCTION = 1 # the environment variable OTREE_PRODUCTION controls whether Django runs in # DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: DEBUG = False else: DEBUG = True mturk_hit_settings = { 'keywords': ['financial', 'study', 'academic', 'accounting', 'manager', 'budgeting', 'budget'], 'title': 'Budgeting task (15-20 minutes; $1+)', 'description': 'Report company budget for over $1+ for 15-20 minutes', 'frame_height': 500, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 60, 'expiration_hours': 3*24, #3 days 'grant_qualification_id': '3MS22PW65GLK4MENSIQX00LCT12PDR', 'qualification_requirements': [ # Only US { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, # At least 500 HITs approved { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [500] }, # At least 95% of HITs approved { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [95] }, { 'QualificationTypeId': "3MS22PW65GLK4MENSIQX00LCT12PDR", 'Comparator': "DoesNotExist", }, ] } SESSION_CONFIGS = [ dict( name='HLMM', app_sequence=['HLMM'], num_demo_participants=1, ), dict( name='HMMTS', app_sequence=['HMMS'], num_demo_participants=2, ), dict( name='HT_Project', app_sequence=['HT_Project'], num_demo_participants=5, ), dict( name='HT_Private', app_sequence=['HT_Private'], num_demo_participants=5, ), dict( name='HT_Absent', app_sequence=['HT_Absent'], num_demo_participants=5, ), dict( name='HMM2', app_sequence=['HMM2'], num_demo_participants=3, ), ] # 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'] PARTICIPANT_FIELDS = ['finished'] SESSION_FIELDS = ['prolific_url'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1, participation_fee=3.00, doc="", mturk_hit_settings=mturk_hit_settings, ) # 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 = False REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 ROOMS = [ dict( name='htpilot', display_name='HT', participant_label_file='_rooms/excen', #use_secure_urls=True, ), dict( name='prolific_hlmm', display_name='hlmm', participant_label_file='_rooms/excen', # participant_label_file='_rooms/your_study.txt', # use_secure_urls=True, ), ] ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = 'admin' DEMO_PAGE_INTRO_HTML = """ Here are some oTree games. """ SECRET_KEY = '7312318489874' INSTALLED_APPS = ['otree','slider_task'] EXTENSION_APPS = ['otree_tools'] AWS_ACCESS_KEY_ID = environ.get('AWSAccessKeyId') AWS_SECRET_ACCESS_KEY = environ.get('AWSSecretKey')