from os import environ participant_fields = ['treatment'] SESSION_CONFIGS = [ dict( name='Static', display_name="Threshold Game - Static", num_demo_participants=5, app_sequence=['Welcome', 'Instructions_S', 'static_CPG', 'Survey_S'], treatment='static_CPG' ), dict( name='Dynamic', display_name="Threshold Game - Dynamic", num_demo_participants=5, app_sequence=['Welcome', 'Instructions_D', 'dynamic_CPG', 'Survey_D'], treatment='dynamic_CPG' ), dict( name='Static_L', display_name="Threshold Game - Static Leadership", num_demo_participants=5, app_sequence=['Welcome', 'Instructions_SL', 'static_leadership_CPG', 'Survey_SL' ], treatment='static_leadership_CPG' ), dict( name='Dynamic_L', display_name="Threshold Game - Dynamic Leadership", num_demo_participants=5, app_sequence=['Welcome', 'Instructions_DL', 'dynamic_leadership_CPG', 'Survey_DL' ], treatment='dynamic_leadership_CPG' ), dict( name='intro', display_name="Send-Aways", num_demo_participants=4, app_sequence=['Consent_Page'], color='black' ), ] # 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.5, participation_fee=0.00, doc="" ) # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = '₡' USE_POINTS = False POINTS_CUSTOM_NAME = 'Cashcoins' ADMIN_USERNAME = 'Till' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ Climate Protection Game. """ # don't share this with anybody. SECRET_KEY = '*kap&^d756f8fbqj7a-v+t%)km=l75h%o-o2z04vo2v6a7fj)h' INSTALLED_APPS = ['otree']