from os import environ SESSION_CONFIGS = [ dict( name='FS1', display_name='Full Series 1', app_sequence=['T1','T2','T3','T4'], num_demo_participants=6 ), dict( name='FS2', display_name='Full Series 2', app_sequence=['T4','T3','T2','T1'], num_demo_participants=6 ), dict( name='FS3', display_name='Full Series 3', app_sequence=['T2','T4','T1','T3'], num_demo_participants=6 ), dict( name='FS4', display_name='Full Series 4', app_sequence=['T3', 'T1', 'T4', 'T2'], num_demo_participants=6 ), dict( name='UCSBMSPGG_Master', display_name='UCSBexperiment Master', app_sequence=['UCSBMSPGG_Master'], num_demo_participants=6, ), dict( name='T1', display_name='UCSB Experiment T1', app_sequence=['T1'], num_demo_participants=6, ), dict( name='T2', display_name='UCSB Experiment T2', app_sequence=['T2'], num_demo_participants=6, ), dict( name='T3', display_name='UCSB Experiment T3', app_sequence=['T3'], num_demo_participants=6, ), dict( name='T4', display_name='UCSB Experiment T4', app_sequence=['T4'], num_demo_participants=6, ) ] # 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=.0017, participation_fee=5.00, doc="" ) PARTICIPANT_FIELDS = ['pgrs', 'treatment_order', 'current_treatment', "group_identity", 'subject_identifier', 'subject_contribution', 'round_number', 'highest_contributor_ig', 'treatment_progress', 'total_payout'] SESSION_FIELDS = ['Treatment'] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = 1 POINTS_CUSTOM_NAME = 'Credits' ROOMS = [ dict( name='R1', display_name='R1', ), dict( name='R2', display_name='R2', ) ] 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 = """ Here are some oTree games. """ SECRET_KEY = '7519342456844' INSTALLED_APPS = ['otree']