from os import environ SESSION_CONFIGS = [ dict( name='spectators', app_sequence=['spectators'], num_demo_participants=200, real_world_currency_per_point=0.01, ), dict( name='players', app_sequence=['players'], num_demo_participants=45, real_world_currency_per_point=0.01, ), dict( name='frd_pls', app_sequence=['frd_pls'], num_demo_participants=45, real_world_currency_per_point=0.01, ), ] # 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.01, participation_fee=0.00, doc="" ) PARTICIPANT_FIELDS = ['treatment', 'prolific_id', 'prolific_study_id', 'prolific_session_id'] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en-us' USE_I18N = True # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'GBP' USE_POINTS = True REAL_WORLD_CURRENCY_DECIMAL_PLACES = 2 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 = '4457382601070'