from os import environ OTREE_PRODUCTION = 1 # the environment variable OTREE_PRODUCTION controls whether Django runs in # DEBUG mode. If OTotREE_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='competition', app_sequence=['competition'], num_demo_participants=1, ), ] # 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=0.50, participation_fee=0.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 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' EXTENSION_APPS = ['otree_tools'] AWS_ACCESS_KEY_ID = environ.get('AWSAccessKeyId') AWS_SECRET_ACCESS_KEY = environ.get('AWSSecretKey')