(server_root, username, password, dbname,
                            use_https=False)
return {
        'COUCH_SERVER': server_url,
        'COUCH_DATABASE': database,
    }
Get dynamic database settings.
    Other apps can use this if they want to change settings
Get dynamic database settings.
    Other apps can use this if they want to change settings
Get dynamic database settings . Other apps can use this if they want to change settings
def get_dynamic_db_settings(server_root, username, password, dbname,
                            use_https=False):
    """
    Get dynamic database settings.
    Other apps can use this if they want to change settings

    """

    http_method = 'https' if use_https else 'http'
    server_url = get_server_url(http_method, server_root, username, password)
    database = '%(server)s/%(database)s' % {
        'server': server_url,
        'database': dbname,
    }
    return {
        'COUCH_SERVER': server_url,
        'COUCH_DATABASE': database,
    }
def get_dynamic_db_settings ( server_root , username , password , dbname , use_https = False ) : http_method = 'https' if use_https else 'http' server_url = get_server_url ( http_method , server_root , username , password ) database = '%(server)s/%(database)s' % { 'server' : server_url , 'database' : dbname , } return { 'COUCH_SERVER' : server_url , 'COUCH_DATABASE' : database , }