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=1.00, participation_fee=3.50, doc="" ) SESSION_CONFIGS = [ { 'name': 'survey', 'display_name': "Survey", 'num_demo_participants': 4, 'app_sequence': ['intro1', 'info', 'games_solo', 'compete','redistribute', 'reduced_sel', 'cooperation', 'coordination', 'guessing_game', 'trust', 'quadratic_voting', 'report_survey', 'befcov', 'covid_survey', 'book_selection', 'goodbye'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'intro', 'display_name': "Introduction", 'num_demo_participants': 4, 'app_sequence': ['intro'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'games_solo', 'display_name': "Single Player Games", 'num_demo_participants': 4, 'app_sequence': ['games_solo'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'compete', 'display_name': "Sliders Task", 'num_demo_participants': 4, 'app_sequence': ['compete'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'redistribute', 'display_name': "Redistribution Game", 'num_demo_participants': 4, 'app_sequence': ['redistribute'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'cooperation', 'display_name': "Cooperation Task", 'num_demo_participants': 4, 'app_sequence': ['cooperation'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'coordination', 'display_name': "Coordination Task", 'num_demo_participants': 4, 'app_sequence': ['coordination'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'guessing_game', 'display_name': "Guessing Game", 'num_demo_participants': 4, 'app_sequence': ['guessing_game'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'trust', 'display_name': "Trust Game", 'num_demo_participants': 4, 'app_sequence': ['trust'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'questionnaire', 'display_name': "Questionnaire", 'num_demo_participants': 4, 'app_sequence': ['questionnaire'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'quadratic_voting', 'display_name': "Quadratic Voting", 'num_demo_participants': 4, 'app_sequence': ['quadratic_voting'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'sel_measures', 'display_name': "Measures of Socio-Emotional Learning", 'num_demo_participants': 4, 'app_sequence': ['sel_measures'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'reduced_sel', 'display_name': "Grit game from Socio-Emotional Learning Measures", 'num_demo_participants': 4, 'app_sequence': ['reduced_sel'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'report_survey', 'display_name': "Report Survey", 'num_demo_participants': 4, 'app_sequence': ['report_survey'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'covid_survey', 'display_name': "Covid Survey", 'num_demo_participants': 4, 'app_sequence': ['covid_survey'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'goodbye', 'display_name': "Comments & Goodbye", 'num_demo_participants': 4, 'app_sequence': ['goodbye'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'book_selection', 'display_name': "Book Selection", 'num_demo_participants': 4, 'app_sequence': ['book_selection'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'intro1', 'display_name': "Instructions", 'num_demo_participants': 4, 'app_sequence': ['intro1'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'info', 'display_name': "Information", 'num_demo_participants': 4, 'app_sequence': ['info'], "teachers_session": False, "use_browser_bots": False }, { 'name': 'befcov', 'display_name': "Befcov", 'num_demo_participants': 4, 'app_sequence': ['befcov'], "teachers_session": False, "use_browser_bots": False }, ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'PKR' USE_POINTS = True POINTS_CUSTOM_NAME = 'credit(s)' POINTS_DECIMAL_PLACES = 1 ROOMS = [dict( name='econ101', display_name='Econ 101 class', participant_label_file='_rooms/econ101.txt', use_secure_urls=True ), dict( name='econ_lab', display_name='Experimental Economics Lab' ),] ADMIN_USERNAME = 'econcur-team' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '6tf(%-7e!n5uh4d9q2phtt=esda-otseb1ka8ebd1fr1=0bqqb' # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree', 'django_user_agents'] MIDDLEWARE = [ 'django_user_agents.middleware.UserAgentMiddleware', ] if environ.get('OTREE_PRODUCTION'): MIDDLEWARE.insert(0, 'django.middleware.security.SecurityMiddleware') SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') SECURE_SSL_REDIRECT = True ROOT_URLCONF = 'intro.urls'