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': ['competition', 'study', 'academic', 'gender'], 'title': 'a brief survey', 'description': 'a brief survey', 'frame_height': 500, 'template': 'global/mturk_template.html', 'minutes_allotted_per_assignment': 60, 'expiration_hours': 3*24, #3 days 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [500] }, ] } SESSION_CONFIGS = [ dict( name='competition', app_sequence=[ 'competition1'], num_demo_participants=96, ), ] # 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=1.00, participation_fee=0.01, 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='competition', display_name='competition', participant_label_file='_rooms/competition', #use_secure_urls=True, ) ] 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. """ SECRET_KEY = '7312318489874' EXTENSION_APPS = ['otree_tools'] AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') PARTICIPANT_FIELDS = [ 'finished', ] SESSION_FIELDS = [ 'prolific_completion_url', ]