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_aia',
display_name="Classroom all-in-auction",
num_demo_participants=3,
app_sequence=['classroom_aia'],
timeout_seconds=15,
endowments=[0, 1, 2, 3, 4],
land=[[6, 4, 3, 2, 1], [8, 5, 3, 2], [10, 9, 7]],
num_sessions=4,
rounds_per_session=6,
players_per_group=30,
doc="""Make sure to set players_per_group equal to the number of participants."""
),
]
# 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='Auction',
display_name='Auction',
participant_label_file='_rooms/breakout-rooms.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 classroom All-in-Auction. The game was developed by David Zetland
and coded for oTree by Jantsje Mol.
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']