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.00, 'participation_fee': 0.00, 'doc': "", 'USE_POINTS' : False, } SESSION_CONFIGS = [ { 'name': 'consent', 'display_name': "Consent", 'num_demo_participants': 4, 'app_sequence': ['consent'], }, { 'name': 'game1', 'display_name': "Experiment 1", 'num_demo_participants': 4, 'app_sequence': ['game1'], }, { 'name': 'game2', 'display_name': "Experiment 2", 'num_demo_participants': 4, 'app_sequence': ['game2'], }, { 'name': 'game3', 'display_name': "Experiment 3", 'num_demo_participants': 4, 'app_sequence': ['game3'], }, { 'name': 'game4', 'display_name': "Experiment 4", 'num_demo_participants': 4, 'app_sequence': ['game4'], }, { 'name': 'treat1', 'display_name': "Information", 'num_demo_participants': 4, 'app_sequence': ['treat1'], }, { 'name': 'game5', 'display_name': "Experiment 5", 'num_demo_participants': 4, 'app_sequence': ['game5'], }, { 'name': 'allocate_payoffs', 'display_name': "Game Payoff Allocation", 'num_demo_participants': 4, 'app_sequence': ['allocate_payoffs'], }, { 'name': 'questionnaire', 'display_name': "Questionnaire", 'num_demo_participants': 4, 'app_sequence': ['questionnaire'], }, { 'name': 'final_game', 'display_name': "Combined_Experiment", 'num_demo_participants': 4, 'app_sequence': ['consent','game1', 'game2', 'game3', 'treat1', 'game5', 'allocate_payoffs','questionnaire'], }, ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'Rupees ' USE_POINTS = False ROOMS = [ dict( name='room', display_name='room', ), dict(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 = """ """ SECRET_KEY = '7_6@ugfmt8kn8ln1eg&pk=&xkq!mk0no6vl-62$2yf-v8%0v^g' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']