def server_netloc(): """ Figure out the name of the server end of the request, punting if it's the local host or not available. """ return urlparse.urlparse(request.url_root).netloc # # URLs #