from os import environ SESSION_CONFIGS = [ dict( name='grading_app', display_name="Grading", num_demo_participants=1, app_sequence=['grading_app', 'grading_task', 'grading_task_end', 'skip_pattern'], ), dict( name='grading_task_end', display_name='grading_task_end', num_demo_participants=1, app_sequence=['grading_task_end', 'skip_pattern'], ), dict( name='grading_task', display_name='grading_task', num_demo_participants=1, app_sequence=['grading_task'], ), dict( name='skip_pattern', display_name='skip_pattern', num_demo_participants=1, app_sequence=['skip_pattern'], ) ] # 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': 1.00, 'participation_fee': 0, 'doc': "", 'mturk_hit_settings': dict( keywords='data entry, survey, bonus', title='Data entry + Survey questions', description='Performance-based pay for data entry work plus additional money for answering questions. Transcription of images for 60 minutes. For instance, by transcribing 60 images correctly in 60 min (1 image has 135 characters), you will earn around 20 USD. By transcribing 30 images correctly in 60 min, you will earn around 10 USD. By transcribing all 100 images correctly, you will earn around 34 USD (the maximum).', frame_height=500, template='global/mturk_template.html', minutes_allotted_per_assignment=300, expiration_hours=7 * 24, # grant_qualification_id='YOUR_QUALIFICATION_ID_HERE', # to prevent retakes qualification_requirements=[ { 'QualificationTypeId': "3MQLN1SP7XCBYZ02XER09PM7DO42NL", 'Comparator': "DoesNotExist", }, { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [97] }, ] ), } # 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 ROOMS = [ dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', ), dict(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. """ SECRET_KEY = '4bhi8=c*c9o5$n(2dhv(-d^q22!&5kmd+726912^mce#$k8#w1' INSTALLED_APPS = ['otree'] AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY')