- get_server_url(local_site_name=None, local_site=None, request=None)¶
Return the URL for the root of the server.
This will construct a URL that points to the root of the server, factoring in whether to use HTTP or HTTPS.
local_siteis provided, then the URL will be the root to the LocalSite’s root, rather than the server’s root.
requestis provided, then the Local Site, if any, will be inferred from the request.
- build_server_url(path=None, **kwargs)¶
Build an absolute URL containing the full URL to the server.
A path can be supplied that will be joined to the server URL.