def namespace(settings):
    """
    Return the namespace associated with these settings
    """
    if getattr(settings, 'SETTINGSD_NAMESPACE', False):
        return settings
    key = getattr(settings, 'SETTINGSD_NS')
    ns = getattr(settings, key)
    return ns
