def configure(config={}, nested=False, cache=None):
    "Useful for when you need to control Switchboard's setup."
    if nested:
        config = nested_config(config)
    Settings.init(cache=cache, **config)
    operator.cache = cache
    timeout = getattr(settings, 'SWITCHBOARD_TIMEOUT', 10)
    dburl = settings.SWITCHBOARD_DBURL
    if dburl:
        engine = sqla.create_engine(dburl, connect_args={'connect_timeout': timeout})
        Switch.store = SQLAlchemyStore(engine, settings.SWITCHBOARD_DBTABLE)
    __import__('switchboard.builtins')
Useful for when you need to control Switchboard's setup.
def configure(config={}, nested=False, cache=None):
    
    if nested:
        config = nested_config(config)
    Settings.init(cache=cache, **config)
    operator.cache = cache
    timeout = getattr(settings, 'SWITCHBOARD_TIMEOUT', 10)
    dburl = settings.SWITCHBOARD_DBURL
    if dburl:
        engine = sqla.create_engine(dburl, connect_args={'connect_timeout': timeout})
        Switch.store = SQLAlchemyStore(engine, settings.SWITCHBOARD_DBTABLE)
    __import__('switchboard.builtins')