import os from os import environ SESSION_CONFIGS = [ {'name': 'DecisionStudy', 'display_name': "DecisionStudy", 'app_sequence': ['Part1', 'Part2', 'Part3'], 'num_demo_participants': 150, 'real_world_currency_per_point': 0.1, # Defines the conversion rate 'participation_fee': 10.00, # The fixed participation fee }, ] TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['_templates_', 'custom'], # Add your directory here 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] # 'Part1 # # 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.1, 'participation_fee': 10.00, 'doc': ""} PARTICIPANT_FIELDS = [] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'CHF' REAL_WORLD_CURRENCY_PER_POINT = 0.1 USE_POINTS = True POINTS_CUSTOM_NAME = " " ROOMS = [ dict(name='prolific1', display_name='Room Prolific 1'), dict(name='prolific2', display_name='Room Prolific 2'), 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 = """ """ SECRET_KEY = 'uchd4108m!4l$qa9#ub7*=w%^#io&155^@^2e9*bkfpolfbouz' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']