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 = { 'real_world_currency_per_point': 1/3600, 'participation_fee': 5, 'doc': "", } SESSION_CONFIGS = [ # # { # # 'name': 'IQTest', # # 'num_demo_participants': 4, # # 'app_sequence': ['IQTest'], # # }, # # { # # 'name': 'MemoryTest', # # 'num_demo_participants': 4, # # 'app_sequence': ['MemoryTest'], # # }, # { # 'name': '2stageN2Question_and_Contest', # 'num_demo_participants': 4, # 'app_sequence': ['contest_ASym2stage_questions_ENG2','contest_ASym2stage_ENG2'], # }, { 'name': 'Contest_1_stage', 'num_demo_participants': 4, 'app_sequence': ['contest_ASym1stage_questions_ENG2','contest_ASym1stage_ENG2'], }, { 'name': 'Contest_2_stages', 'num_demo_participants': 4, 'app_sequence': ['contest_ASym2stage_questions_ENG2','contest_ASym2stage_ENG2'], }, { 'name': 'contest_ASym2stage_ENG2', 'num_demo_participants': 4, 'app_sequence': ['contest_ASym2stage_ENG2'], }, { 'name': 'contest_ASym2stage_questions_ENG2', 'num_demo_participants': 4, 'app_sequence': ['contest_ASym2stage_questions_ENG2'], }, { 'name': 'contest_ASym1stage_ENG2', 'num_demo_participants': 4, 'app_sequence': ['contest_ASym1stage_ENG2'], }, { 'name': 'contest_ASym1stage_questions_ENG2', 'num_demo_participants': 4, 'app_sequence': ['contest_ASym1stage_questions_ENG2'], }, ] # see the end of this file for the inactive session configs # ISO-639 code # for example: de, fr, ja, ko, zh-hans # LANGUAGE_CODE = 'zh-hans' LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY, USD REAL_WORLD_CURRENCY_CODE = 'CHF' USE_POINTS = False ROOMS = [ { 'name': 'econ101', 'display_name': 'Econ 101 class', 'participant_label_file': '_rooms/econ101.txt', }, { 'name': 'live_demo', 'display_name': 'Room for live demo (no participant labels)', }, ] 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. """ # don't share this with anybody. SECRET_KEY = 'rzihk!n+yq6ym#cu*$m)o#@bl&f5^rjb@3lw^qtwca&eqq)d%9' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']