コード例 #1
0
 def inner(settings):
     settings_composer.set(RECURSION_SUCCESS=True)
     settings_composer.load('settings_composer.tests.settings.recursion.switch_definitions')
     settings_composer.apply_switch('recursive', 'loading')
コード例 #2
0
import settings_composer

settings_composer.apply_switch('debug', 'off')
settings_composer.apply_switch('thing', 'on')


LOADED_PRODUCTION_SETTINGS = True
LOADED_LOCAL_SETTINGS = False
DEBUG = False
コード例 #3
0
import settings_composer

settings_composer.apply_switch("debug", "on")
settings_composer.apply_switch("thing", "off")


LOADED_LOCAL_SETTINGS = True
LOADED_PRODUCTION_SETTINGS = False