from os import environ import os SESSION_CONFIGS = [ dict( name='Effort_Online_v1', app_sequence=['effort_online_v1'], num_demo_participants=1, allocation_rate="", allocation_decision="", allocation_today="", allocation_1week="", today_m="", today_d="", week1_m="", week1_d="", ), dict( name='Effort_Online_v2', app_sequence=['effort_online_v2'], num_demo_participants=3, allocation_rate1="", allocation_rate2="", allocation_today="", allocation_1week="", allocation_2week="", allocation_3week="", today_m="", today_d="", week1_m="", week1_d="", week2_m="", week2_d="", week3_m="", week3_d="", ), ] # 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=0.00, doc="" ) PARTICIPANT_FIELDS = ['today_m', 'today_d', 'week1_m', 'week1_d', 'week2_m', 'week2_d', 'week3_m', 'week3_d','language', 'decision_order', 'listening_score', 'reading_score', 'food_order', 'food_question', 'food_question1', 'food_question2', 'food_check1', 'food_check2', 'food_choice', 'food_choice_c', 'food_indifferent', 'allocation_question', 'allocation_number', 'allocation_decision', 'allocation_rate', 'allocation_today', 'allocation_1week', 'allocation_2week', 'allocation_3week', 'risk_choice', 'risk_status', 'risk_amount', 'risk_amount1', 'risk_amount2', 'allocation_rate1', 'allocation_rate2'] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = False ADMIN_USERNAME = 'josie864' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = 'josie864' DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '6657226519718' # Debug Info用 DEBUG = os.getenv('DEBUG', False) == 'True'