from os import environ import os # 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': 0.04, 'participation_fee': 0.00, 'doc': "", } SESSION_CONFIGS = [ { 'name': 'bret', 'display_name': "Bomb Risk Elicitation Task", 'num_demo_participants': 1, 'app_sequence': ['bret'], }, { 'name': 'survey_demo_soft_treatment_survey', 'display_name': "survey + demo + soft_treatment + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','soft_treatment_automatic','end_survey'], }, { 'name': 'survey_demo_soft_treatment_survey_reverted', 'display_name': "survey + demo + soft_treatment_reverted + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','soft_treatment_automatic_reverted','end_survey'], }, { 'name': 'survey_demo_hard_treatment_survey', 'display_name': "survey + demo + hard treatment + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','hard_treatment_automatic','end_survey'], }, { 'name': 'survey_demo_hard_treatment_survey_reverted', 'display_name': "survey + demo + hard treatment reverted + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','hard_treatment_automatic_reverted','end_survey'], }, { 'name': 'survey_demo_soft_treatment_survey_robo_adviser', 'display_name': "bomb risk elicitation task + survey + soft treatment robo adviser + end_survey", 'num_demo_participants': 1, 'app_sequence': ['bret','survey','soft_treatment_automatic_robo_adviser','end_survey'], }, { 'name': 'survey_demo_soft_treatment_survey_reverted_robo_adviser', 'display_name': "survey + demo + soft treatment reverted robo adviser + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','soft_treatment_automatic_reverted_robo_adviser','end_survey'], }, { 'name': 'survey_demo_hard_treatment_survey_robo_adviser', 'display_name': "survey + demo + hard treatment robo adviser + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','hard_treatment_automatic_robo_adviser','end_survey'], }, { 'name': 'survey_demo_hard_treatment_survey_reverted_robo_adviser', 'display_name': "survey + demo + hard treatment reverted robo adviser + end_survey", 'num_demo_participants': 1, 'app_sequence': ['survey','demo','hard_treatment_automatic_reverted_robo_adviser','end_survey'], }, { 'name': 'hard_treatment_automatic', 'display_name': "Stock Exp - Hard Treatment automatic", 'num_demo_participants': 1, 'app_sequence': ['hard_treatment_automatic'], }, { 'name': 'hard_treatment_automatic_reverted', 'display_name': "Stock Exp - Hard Treatment automatic reverted", 'num_demo_participants': 1, 'app_sequence': ['hard_treatment_automatic_reverted'], }, { 'name': 'hard_treatment_automatic_robo_adviser', 'display_name': "Stock Exp - Hard Treatment automatic robo adviser", 'num_demo_participants': 1, 'app_sequence': ['hard_treatment_automatic_robo_adviser'], }, { 'name': 'hard_treatment_automatic_reverted_robo_adviser', 'display_name': "Stock Exp - Hard Treatment automatic reverted robo adviser", 'num_demo_participants': 1, 'app_sequence': ['hard_treatment_automatic_reverted_robo_adviser'], }, { 'name': 'soft_treatment_automatic', 'display_name': "Stock Exp - Soft Treatment automatic", 'num_demo_participants': 1, 'app_sequence': ['soft_treatment_automatic'], }, { 'name': 'soft_treatment_automatic_reverted', 'display_name': "Stock Exp - Soft Treatment automatic reverted", 'num_demo_participants': 1, 'app_sequence': ['soft_treatment_automatic_reverted'], }, { 'name': 'soft_treatment_automatic_robo_adviser', 'display_name': "Stock Exp - Soft Treatment automatic robo adviser", 'num_demo_participants': 1, 'app_sequence': ['soft_treatment_automatic_robo_adviser'], }, { 'name': 'soft_treatment_automatic_reverted_robo_adviser', 'display_name': "Stock Exp - Soft Treatment automatic reverted robo adviser", 'num_demo_participants': 1, 'app_sequence': ['soft_treatment_automatic_reverted_robo_adviser'], }, { 'name': 'demo', 'display_name': "Stock Exp - Demo", 'num_demo_participants': 1, 'app_sequence': ['demo'], }, { 'name': 'survey', 'display_name': "Survey", 'num_demo_participants': 1, 'app_sequence': ['survey'], }, { 'name': 'end_survey', 'display_name': "End Survey", 'num_demo_participants': 1, 'app_sequence': ['end_survey'], }, ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'it' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'EUR' USE_POINTS = True POINTS_DECIMAL_PLACES = 0 POINTS_CUSTOM_NAME = 'ECU' ROOMS = [ { 'name': 'stock_exp_room', 'display_name': 'Stock Experiment Room' }] 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 = '4he8*v$dc=85*$v$79-d)$s4k==!kj#@8arv=)d53y%7sjwq4q' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree']