import os from os import environ SESSION_CONFIGS = [ dict( name='dictator', app_sequence=['dictator'], num_demo_participants=60, timePreTask=5000, timeGlobal=600000 ), dict( name='exogenousHL_24_123', app_sequence=['exogenousHL_24_123'], num_demo_participants=24, ), dict( name='exogenousHL_24_234', app_sequence=['exogenousHL_24_234'], num_demo_participants=24, ), dict( name='exogenousHL_22_456', app_sequence=['exogenousHL_22_456'], num_demo_participants=22, ), dict( name='exogenousHL_20_189', app_sequence=['exogenousHL_20_189'], num_demo_participants=20, ), dict( name='exogenousHL_20_567', app_sequence=['exogenousHL_20_567'], num_demo_participants=20, ), dict( name='exogenousHL_18_789', app_sequence=['exogenousHL_18_789'], num_demo_participants=18, ), dict( name='exogenousLH_24', app_sequence=['exogenousLH_24'], num_demo_participants=24, ), dict( name='responsibilityHL_24', app_sequence=['responsibilityHL_24'], num_demo_participants=24, ), dict( name='responsibilityLH_24', app_sequence=['responsibilityLH_24'], num_demo_participants=24, ), dict( name='baselineHL_24', app_sequence=['baselineHL_24'], num_demo_participants=24, ), dict( name='baselineLH_24', app_sequence=['baselineLH_24'], num_demo_participants=24, ), ] ROOMS = [ dict( name='BEEL', display_name='BEEL', participant_label_file='_rooms/BEEL.txt', use_secure_urls=True ), ] # 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 = ['session_random_round1', 'session_random_round2'] # 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 = False ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: DEBUG = False else: DEBUG = True DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '3948980268016'