from os import environ SESSION_CONFIGS = [ dict( name='main_app', display_name='Main App', num_demo_participants=1, app_sequence=['intro', 'task', 'task_last30','after', 'task_second','other_questions','skip_pattern'], ), dict( name='other_questions', display_name='Other Questions', num_demo_participants=1, app_sequence=['other_questions', 'skip_pattern'], ), dict( name='after', display_name='After Task', num_demo_participants=1, app_sequence=['after', 'task_second','other_questions','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. Correctly transcribing 60 barcodes in 60 minutes (1 barcode has 40 digits) will earn you $12. Maximum transcription earnings are $36. Additional money for answering survey questions.', 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 = """ """ SECRET_KEY = 'nydfo)k=)cxc(u^!r2%o6=3k9gv-l($rdac$2@vbmwf9g2+tss' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY')