def _get_url(view_name, backend_name, auth_entry=None, redirect_url=None, extra_params=None, url_params=None):
 url_params = (url_params or {})
 url_params['backend'] = backend_name
 url = reverse(view_name, kwargs=url_params)
 query_params = OrderedDict()
 if auth_entry:
  query_params[AUTH_ENTRY_KEY] = auth_entry
 if redirect_url:
  query_params[AUTH_REDIRECT_KEY] = redirect_url
 if extra_params:
  query_params.update(extra_params)
 return u'{url}?{params}'.format(url=url, params=urllib.urlencode(query_params))

def _get_url ( view_name , backend_name , auth_entry = None , redirect_url = None , extra_params = None , url_params = None ) : url_params = ( url_params or { } ) url_params [ 'backend' ] = backend_name url = reverse ( view_name , kwargs = url_params ) query_params = OrderedDict ( ) if auth_entry : query_params [ AUTH_ENTRY_KEY ] = auth_entry if redirect_url : query_params [ AUTH_REDIRECT_KEY ] = redirect_url if extra_params : query_params . update ( extra_params ) return u'{url}?{params}' . format ( url = url , params = urllib . urlencode ( query_params ) )
creates a url to hook into social auth endpoints .