import os from os import environ EXTENSION_APPS = ['pggfg'] # don't share this with anybody. SECRET_KEY = 'ea_h#&kz!etxef1fikaehvncnk+#y13p##*x80-te1v)_%k#c4' # e.g. EUR, CAD, GBP, CHF, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True #AUTH_LEVEL = 'STUDY' # e.g. en, de, fr, it, ja, zh-hans # see: https://docs.djangoproject.com/en/1.9/topics/i18n/#term-language-code LANGUAGE_CODE = 'en' ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable #ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') ADMIN_PASSWORD = "admin" # the environment variable OTREE_PRODUCTION controls whether Django runs in # DEBUG mode. If OTREE_PRODUCTION==1, then DEBUG=False if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}: DEBUG = False else: DEBUG = True # if an app is included in SESSION_CONFIGS, you don't need to list it here INSTALLED_APPS = ['otree'] SESSION_CONFIG_DEFAULTS = { 'real_world_currency_per_point': 0.000, 'participation_fee': 0.00, 'doc': "", 'use_browser_bots': False } SESSION_CONFIGS = [ { 'name': 'gateGSI1', 'display_name': 'gateGSI1', 'num_demo_participants': 3, 'app_sequence': ['introduction'], 'conditionGSI': 1, }, { 'name': 'gateGSI2', 'display_name': 'gateGSI2', 'num_demo_participants': 3, 'app_sequence': ['introduction'], 'conditionGSI': 2, }, { 'name': 'gateGSI3', 'display_name': 'gateGSI3', 'num_demo_participants': 3, 'app_sequence': ['introduction'], 'conditionGSI': 3, }, { 'name': 'instGSI1', 'display_name': 'instGSI1', 'num_demo_participants': 3, 'app_sequence': ['inst_checktest'], 'conditionGSI': 1, }, { 'name': 'instGSI2', 'display_name': 'instGSI2', 'num_demo_participants': 3, 'app_sequence': ['inst_checktest'], 'conditionGSI': 2, }, { 'name': 'instGSI3', 'display_name': 'instGSI3', 'num_demo_participants': 3, 'app_sequence': ['inst_checktest'], 'conditionGSI': 3, }, { 'name': 'pggGSI1', 'display_name': 'pggGSI1', 'num_demo_participants': 12, 'app_sequence': ['pgg', 'pggfg', 'svotree','ind_info'], 'conditionGSI': 1, }, { 'name': 'pggGSI2', 'display_name': 'pggGSI2', 'num_demo_participants': 12, 'app_sequence': ['pgg', 'pggfg', 'svotree', 'ind_info'], 'conditionGSI': 2, }, { 'name': 'pggGSI3', 'display_name': 'pggGSI3', 'num_demo_participants': 12, 'app_sequence': ['pgg', 'pggfg', 'svotree', 'ind_info'], 'conditionGSI': 3, }, { 'name': 'pggfgGSI1', 'display_name': '罰ありPGGのみGSI1', 'num_demo_participants': 12, 'app_sequence': ['pggfg'], 'conditionGSI': 1, }, { 'name': 'pggfgGSI2', 'display_name': '罰ありPGGのみGSI2', 'num_demo_participants': 12, 'app_sequence': ['pggfg'], 'conditionGSI': 2, }, { 'name': 'pggfgGSI3', 'display_name': '罰ありPGGのみGSI3', 'num_demo_participants': 12, 'app_sequence': ['pggfg'], 'conditionGSI': 3, }, { 'name': 'postQ', 'display_name': 'SVOと事後質問のみ', 'num_demo_participants': 3, 'app_sequence': ['svotree','ind_info'], 'conditionGSI': 0, }, ] ROOMS = [ dict( name='gateGSI1', display_name='GateGSI1', participant_label_file='_rooms/gateGSI1.txt', ), dict( name='gateGSI2', display_name='GateGSI2', participant_label_file='_rooms/gateGSI2.txt', ), dict( name='gateGSI3', display_name='GateGSI3', participant_label_file='_rooms/gateGSI3.txt', ), dict( name='instGSI1', display_name='InstGSI1', participant_label_file='_rooms/instGSI1.txt', ), dict( name='instGSI2', display_name='InstGSI2', participant_label_file='_rooms/instGSI2.txt', ), dict( name='instGSI3', display_name='InstGSI3', participant_label_file='_rooms/instGSI3.txt', ), dict( name='pggGSI1', display_name='PggGSI1', participant_label_file='_rooms/pggGSI1.txt', ), dict( name='pggGSI2', display_name='PggGSI2', participant_label_file='_rooms/pggGSI2.txt', ), dict( name='pggGSI3', display_name='PggGSI3', participant_label_file='_rooms/pggGSI3.txt', ), dict( name='post', display_name='事後質問のみ', participant_label_file='_rooms/事後質問のみ.txt', ), ] # ISO-639 code # for example: de, fr, ja, ko, zh-hans #LANGUAGE_CODE = 'en'svoのために、enにしたけど、他のは日本語だけど大丈夫なのかな?でも、下の日本語でもSVO動いた。 LANGUAGE_CODE = 'ja' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'JPY' USE_POINTS = True