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'] mturk_hit_settings = { 'keywords': ['bonus', 'study'], 'title': 'Title for your experiment', 'description': 'Description for your experiment', 'frame_height': 500, 'preview_template': 'global/MTurkPreview.html', 'minutes_allotted_per_assignment': 60, 'expiration_hours': 7 * 24, # 7 days # 'grant_qualification_id': 'YOUR_QUALIFICATION_ID_HERE',# to prevent retakes 'qualification_requirements': [ { 'QualificationTypeId': "00000000000000000071", 'Comparator': "In", 'LocaleValues': [{'Country': "US"}, {'Country': 'NL'}, {'Country': 'CA'}] # 'LocaleValues':[{'Country':"US", 'Subdivision':"CA"}] }, ] } SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 1.00, 'participation_fee': 0.10, 'mturk_hit_settings': mturk_hit_settings, 'doc': "", } USE_POINTS = False POINTS_DECIMAL_PLACES = 2 REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 EXTENSION_APPS = ['otree_tools'] SESSION_CONFIGS = [ { 'name': 'Value', 'display_name': "Value", 'num_demo_participants': 10, 'app_sequence': ['vSurvey', 'GPS', 'mpl', 'TimePref', 'get_email'] }, # { # 'name': 'TimePref', # 'display_name': "TimePref", # 'num_demo_participants': 2, # 'app_sequence': ['TimePref'], # }, # { # 'name': 'vSurvey', # 'display_name': "vSurvey", # 'num_demo_participants': 2, # 'app_sequence': ['vSurvey'], # }, # { # 'name': 'mpl', # 'display_name': "mpl", # 'num_demo_participants': 2, # 'app_sequence': ['mpl'], # }, # { # 'name': 'RPD1', # 'display_name': "RPD1", # 'num_demo_participants': 2, # 'app_sequence': ['prisoner_RPD'], # }, # { # 'name': 'RPD2', # 'display_name': "RPD2", # 'num_demo_participants': 2, # 'app_sequence': ['my_RPD_2'], # }, # { # 'name': 'RPDbot', # 'display_name': "RPDbot", # 'num_demo_participants': 2, # 'app_sequence': ['RPD_bot'], # }, # { # 'name': 'scl_tp', # 'display_name': "scl_tp", # 'num_demo_participants': 1, # 'app_sequence': ['scl_tp'], # }, # { # 'name': 'cem', # 'display_name': "cem", # 'num_demo_participants': 1, # 'app_sequence': ['cem'], # }, # { # 'name': 'mpl', # 'display_name': "mpl", # 'num_demo_participants': 1, # 'app_sequence': ['mpl'], # }, # { # 'name': 'GPS', # 'display_name': "GPS", # 'num_demo_participants': 2, # 'app_sequence': ['GPS'], # }, # { # 'name': 'my_RPD_all', # 'display_name': "my_RPD_all", # 'num_demo_participants': 2, # 'app_sequence': ['ValueSurvey_new', 'trust_RPD', 'prisoner_RPD', 'my_RPD_2', 'RPD_bot'], # }, ] # 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' 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 = environ.get('OTREE_ADMIN_PASSWORD') # setting for integration with AWS Mturk AWS_ACCESS_KEY_ID = environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = environ.get('AWS_SECRET_ACCESS_KEY') 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 = 'z0j9fex*ple2sn&2skj*%kktyv$+^b&-)9$%z3au9v**k$hs&c' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree', 'otree_tools', 'django.contrib.auth', 'django.contrib.contenttypes', 'django_countries' ]