from os import environ # 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.4, 'doc': "", 'mturk_hit_settings': dict( keywords='study, survey', title='Survey on transparency (~5 min)', description='Survey on transparency in a hypothetical setting', frame_height=500, template='global/mturk_template.html', minutes_allotted_per_assignment=30, expiration_hours=7 * 24, qualification_requirements=[ { 'QualificationTypeId': '3PP3A267ADC8LDS2JXSHV1KFHBKQ9W', 'Comparator': 'DoesNotExist', } ], grant_qualification_id='3PP3A267ADC8LDS2JXSHV1KFHBKQ9W', # to prevent retakes ) } SESSION_CONFIGS = [ { 'name': 'trustGame_Minus1', 'display_name': "Trust Game Group -1", 'num_demo_participants': 2, 'app_sequence': ['trustGame_Minus1Introduction', 'trustGameManipulationCheck', 'trustGame_PreSurvey', 'trustGame_Minus1', 'trustGame_PostSurvey', 'trustGame_CoSSurvey'], }, { 'name': 'trustGame_0', 'display_name': "Trust Game Group 0", 'num_demo_participants': 2, 'app_sequence': ['trustGame_0Introduction', 'trustGame_0ManipulationCheck', 'trustGame_PreSurvey', 'trustGame_0', 'trustGame_PostSurvey', 'trustGame_0CoSSurvey'], }, { 'name': 'trustGame_1', 'display_name': "Trust Game Group 1", 'num_demo_participants': 2, 'app_sequence': ['trustGame_1Introduction', 'trustGameManipulationCheck', 'trustGame_PreSurvey', 'trustGame_1', 'trustGame_PostSurvey', 'trustGame_CoSSurvey'], }, { 'name': 'independent_survey', 'display_name': "Independent survey", 'num_demo_participants': 2, 'app_sequence': ['trustGame_independentSurvey'], }, ] # see the end of this file for the inactive session configs # 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' REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 POINTS_CUSTOM_NAME = 'ECU' USE_POINTS = True ROOMS = [ { 'name': 'econ101', 'display_name': 'Econ 101 class', 'participant_label_file': '_rooms/econ101.txt', }, { '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 = 'trustTUM' DEMO_PAGE_INTRO_HTML = """ Here are various games implemented with oTree. These games are open source, and you can modify them as you wish. """ # don't share this with anybody. SECRET_KEY = '34jjqrr)=arvqne(22mp=u_+djrb8n@v1%(6q7q32+jl=l1@l1' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']