from os import environ SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': .01, 'participation_fee': 1.5, 'doc': "", 'use_browser_bots': False, 'minutes_per_study': 15, } GENERAL_ALLOCATION_SETTINGS = {'tax_rate_1': 0.0, 'tax_rate_2': 0.40, 'tax_rate_3': 0.50, } SESSION_CONFIGS = [ { 'name': 'full_no_sign', 'display_name': "Reallocation - full treatment, no signalling", 'num_demo_participants': 4, 'app_sequence': ['reallocation'], 'partial': False, 'signalling': False, **GENERAL_ALLOCATION_SETTINGS, }, { 'name': 'partial_no_sign', 'display_name': "Reallocation - partial treatment, no signalling", 'num_demo_participants': 4, 'app_sequence': ['reallocation'], 'partial': True, 'signalling': False, **GENERAL_ALLOCATION_SETTINGS, }, { 'name': 'full_sign', 'display_name': "Reallocation - full treatment, signalling", 'num_demo_participants': 4, 'app_sequence': ['reallocation'], 'partial': False, 'signalling': True, **GENERAL_ALLOCATION_SETTINGS, }, { 'name': 'partial_sign', 'display_name': "Reallocation - partial treatment, signalling", 'num_demo_participants': 4, 'app_sequence': ['reallocation'], 'partial': True, 'signalling': True, **GENERAL_ALLOCATION_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 = 'GBP' USE_POINTS = True POINTS_DECIMAL_PLACES = 1 ROOMS = [] 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 = '3ub=8t+&*a@r$yx2n3w9$47q5=%65lepbd-9o^e*&!p(b846-#' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['reallocation', 'otree', 'django.contrib.humanize'] TASK_NAME = 'task'