from os import environ MPL_SLIDERS_CONFIG = dict( mpl_step=10, mpl_refine_margin=10, mpl_refine_step=1, currency_symbol='PLN', monotonicity_error='The two values cannot be identical and the first value cannot be greater than the second value.' ) SESSION_CONFIGS = [ dict( name='mpl_table', display_name='MPL - Table', app_sequence=['intro', 'mpl_table', 'end'], num_demo_participants=10, **MPL_SLIDERS_CONFIG ) ] # 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=1.00, participation_fee=0.00, doc="" ) PARTICIPANT_FIELDS = [] SESSION_FIELDS = [] ROOMS = [ dict( name='room1', display_name='Room BK' ), dict( name='room2', display_name='Room PS1' ), dict( name='room3', display_name='Room PS2' ), dict( name='room4', display_name='Room MZ1' ), dict( name='room5', display_name='Room MZ2' ), dict( name='room6', display_name='Room LW' ), dict( name='room7', display_name='Room JP1' ), dict( name='room8', display_name='Room JP2' ), dict( name='room9', display_name='Room Poz1' ), dict( name='room10', display_name='Room Oth1' ), dict( name='room11', display_name='Room Oth2' ) ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'PLN' USE_POINTS = False 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 = '4826033663157'