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 = dict( real_world_currency_per_point=0.00667, participation_fee=1.67, doc="", mturk_hit_settings=dict( keywords='bonus, interactive, study', title='Please only accept if you can start immediately - Decision-making study', description='Interact with another Mturk participant. Minimum payment 1.67$. Maximum payment $3.94. Bonus depends on your choices and the choices of another participant. ', frame_height=500, template='global/mturk_template.html', minutes_allotted_per_assignment=60, expiration_hours=0.25, qualification_requirements=[ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [90] }, { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [100] }, { 'QualificationTypeId': "3O42DSCJOKUD7SB0ZOK99WED6ZRX6M", 'Comparator': "DoesNotExist", }, { 'QualificationTypeId': "3YUA2D3Z13JJK3WBL1MQNJEM0J3UWS", 'Comparator': "Exists", }, ], grant_qualification_id='3O42DSCJOKUD7SB0ZOK99WED6ZRX6M', # to prevent retakes ) ) SESSION_CONFIGS = [ dict( name='trust11', display_name="ExpensiveInfo-DISaggregated-no-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=1, disaggregated=1, skip_quiz=True ), dict( name='trust21', display_name="ExpensiveInfo-Aggregated-no-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=1, disaggregated=0, skip_quiz=True ), dict( name='trust11311', display_name="CheapInfo-DISaggregated-no-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=0, disaggregated=1, skip_quiz=True ), dict( name='trust21312312', display_name="CheapInfo-Aggregated-no-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=0, disaggregated=0, skip_quiz=True ), dict( name='trust11q', display_name="ExpensiveInfo-DISaggregated-with-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=1, disaggregated=1, ), dict( name='trust21q', display_name="ExpensiveInfo-Aggregated-with-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=1, disaggregated=0, ), dict( name='trust11311q', display_name="CheapInfo-DISaggregated-with-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=0, disaggregated=1, ), dict( name='trust21312312q', display_name="CheapInfo-Aggregated-with-quiz", num_demo_participants=20, app_sequence=['attention','trust'], expensive=0, disaggregated=0, ), ] # 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. """ # don't share this with anybody. SECRET_KEY = environ.get('SECRET_KEY') or '' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] #EXTENSION_APPS = ['otreeutils']