def get_server_url(local_site_name=None, local_site=None, request=None):
 site = Site.objects.get_current()
 siteconfig = SiteConfiguration.objects.get_current()
 root = local_site_reverse(u'root', local_site_name=local_site_name, local_site=local_site, request=request)
 return (u'%s://%s%s' % (siteconfig.get(u'site_domain_method'), site.domain, root))

def get_server_url ( local_site_name = None , local_site = None , request = None ) : site = Site . objects . get_current ( ) siteconfig = SiteConfiguration . objects . get_current ( ) root = local_site_reverse ( u'root' , local_site_name = local_site_name , local_site = local_site , request = request ) return ( u'%s://%s%s' % ( siteconfig . get ( u'site_domain_method' ) , site . domain , root ) )
return the url for the root of the server .