# settings.py # -*- coding: utf-8 -*- from os import environ # ------------------------------------------------------------ # 基本設定 # ------------------------------------------------------------ SESSION_CONFIGS = [ dict( name='lottery', display_name='Lottery (single or grouped UI randomized per participant)', app_sequence=['lottery_app'], num_demo_participants=1, completionlink='https://research.moblab.com/server/research/participant/callback/submit-code/?id=16ce8938-6fa0-42c9-87e6-539b4655ce5f&code=MJ9VILNK53', ), ] # 這裡可放預設值(會被每個 session config 覆寫) SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc="", ) # 需要在 participant / session 上暫存的欄位(如有需要再加) PARTICIPANT_FIELDS = ['finished'] SESSION_FIELDS = ['prolific_completion_url'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc="", ) LANGUAGE_CODE = 'en' REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ADMIN_USERNAME = 'admin' ADMIN_PASSWORD = 'NTPUMB24' # 改成你的 SECRET_KEY = 'CHANGE-ME' # 改成你的 INSTALLED_APPS = ['otree'] '''SESSION_CONFIGS = [ dict( name='lottery_single', display_name='Lottery (single)', app_sequence=['lottery_app'], num_demo_participants=1, treatment='single', # 單頁單區塊 ), dict( name='lottery_grouped', display_name='Lottery (grouped)', app_sequence=['lottery_app'], num_demo_participants=1, treatment='grouped', # 三區塊同頁 ), ]'''