from os import environ # 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.01, participation_fee=0.00, doc="" ) SESSION_CONFIGS = [ dict( name='classroom_pgg1', display_name="Classroom PGG game (Basic one round)", num_demo_participants=3, players_per_group=3, num_rounds=1, efficiency_factor=1.6, punishment_factor=3, app_sequence=['classroom_pgg'], cheap_talk=False, punishment=False, threshold=0, ), dict( name='classroom_pgg2', display_name="Classroom PGG game (Basic ten rounds)", num_demo_participants=3, players_per_group=3, num_rounds=10, efficiency_factor=1.6, punishment_factor=3, app_sequence=['classroom_pgg'], cheap_talk=False, punishment=False, threshold=0, ), dict( name='classroom_pgg3', display_name="Classroom PGG game (Threshold)", num_demo_participants=3, players_per_group=3, num_rounds=10, efficiency_factor=1.6, punishment_factor=3, app_sequence=['classroom_pgg'], cheap_talk=False, punishment=False, threshold=150, ), dict( name='classroom_pgg4', display_name="Classroom PGG game (Threshold + chat)", num_demo_participants=3, players_per_group=3, num_rounds=10, efficiency_factor=1.6, punishment_factor=3, app_sequence=['classroom_pgg'], cheap_talk=True, punishment=False, threshold=150, ), dict( name='classroom_pgg5', display_name="Classroom PGG game (Threshold + chat + punishment)", num_demo_participants=3, players_per_group=3, num_rounds=10, efficiency_factor=1.6, punishment_factor=3, app_sequence=['classroom_pgg'], cheap_talk=True, punishment=True, threshold=150, ), ] # see the end of this file for the inactive session configs # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' LANGUAGE_SESSION_KEY = '_language' # we need this to deal with the issue of the very last page # That is shown to users when they click 'Next' at the VERY last page # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' REAL_WORLD_CURRENCY_DECIMAL_PLACES = 0 USE_POINTS = True USE_THOUSAND_SEPARATOR = True POINTS_CUSTOM_NAME = 'ECU' ROOMS = [ dict( name='StudentIDs', display_name='Student IDs', participant_label_file='_rooms/student-ids.txt' ), ] 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 = """ Welcome to this public goods game project. I developed a series of public goods games for the classroom. More information can be found on Github. """ # don't share this with anybody. SECRET_KEY = '{{ secret_key }}' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']