from os import environ SESSION_CONFIGS = [ dict( name='baseline', num_demo_participants=2, app_sequence=['app_1_base_norm','app_2_dictator','app_3_payment'] ), dict( name='norm_rating', num_demo_participants=2, app_sequence=['app_4_rating_norm','app_5_dictator','app_6_payment'] ), dict( name='bystander', num_demo_participants=2, app_sequence=['app_7_bystander_norm', 'app_8_dictator', 'app_9_payment'] ), ] # 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.1, participation_fee=10, doc="" ) PARTICIPANT_FIELDS = [ 'past_group_id', 'past_id_in_group', 'app_payoffs', 'total_payoff_app_1', 'buyer_payoff_in_chosen_round', 'seller_payoff_in_chosen_round', 'price_in_chosen_round', 'quantity_G_bad_in_chosen_round' ] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'zh-hans' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'CNY' USE_POINTS = True 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 = '9587312833485'