from os import environ #from boto.mturk import qualification # 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'] mturk_hit_settings = { 'keywords': ['bonus', 'study', 'experiment', 'game'], 'title': 'Academic experiment on decision-making (about 20min)', 'description': 'You will be in a virtual market situation, making choices as buyer or seller.', 'frame_height': 500, 'minutes_allotted_per_assignment': 60, 'expiration_hours': 1*24, # 7 days 'qualification_requirements': [ { 'QualificationTypeId': "3N949H8PVTK5FKL2YDE9YGUMQ03CEE", 'Comparator': "DoesNotExist" }, { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [500] }, { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [95] } ], 'template': 'global/mturk_template.html', } SESSION_CONFIGS = [ dict( name='public_goods', display_name="Public Goods", num_demo_participants=3, app_sequence=['public_goods', 'payment_info'], ), dict( name='guess_two_thirds', display_name="Guess 2/3 of the Average", num_demo_participants=3, app_sequence=['guess_two_thirds', 'payment_info'], ), dict( name='trust', display_name='trust', num_demo_participants=2, app_sequence=['trust', 'payment_info'], ), dict( name='survey', display_name='survey', num_demo_participants=1, app_sequence=['survey', 'payment_info'], ), dict( name='bertrand', display_name="bertrand", num_demo_participants=8, app_sequence=['bertrand', 'payment_info'], ), { 'name': 'MTurk_Unc_PWYW', 'display_name': "PWYW Uncertainty", 'num_demo_participants': 4, 'app_sequence': ['Instructions', 'MTurk_Unc_PWYW'], }, { 'name': 'CF_Experiment', 'display_name': "Crowdfunding", 'num_demo_participants': 5, 'app_sequence': ['CF_experiment'], }, dict( name='TGself', display_name="TGself", num_demo_participants=2, app_sequence=['TGself', 'payment_info'], ), dict( name='dictator', display_name="dictator", num_demo_participants=8, app_sequence=['dictator'], ), dict( name='prisoner', display_name="prisoner dilemma", num_demo_participants=8, app_sequence=['prisoner'], ), dict( name='traveler_dilemma', display_name="traveler_dilemma", num_demo_participants=8, app_sequence=['traveler_dilemma'], ), ] # 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': 0.01, 'participation_fee': 2, '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 = True POINTS_DECIMAL_PLACES=2 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. """ # don't share this with anybody. SECRET_KEY = '^0=9v1a1=k&t-ha@9nxu@z%6rq2^vn08228m@$)2d!!1*2#)c$' INSTALLED_APPS = ['otree']