settings: Replace occurrences of uri with url.

In #23380 we want to change all occurrences of `uri` with `url`.
This commit changes the names of two variables `external_uri_scheme`
and `main_site_uri`, who are constructed using `settings` constants.
This commit is contained in:
AcKindle3
2023-04-25 20:24:11 -04:00
committed by Tim Abbott
parent 4544eb4576
commit 98c9a0366a
5 changed files with 8 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ def common_context(user: UserProfile) -> Dict[str, Any]:
"realm_uri": user.realm.uri,
"realm_name": user.realm.name,
"root_domain_url": settings.ROOT_DOMAIN_URI,
"external_uri_scheme": settings.EXTERNAL_URI_SCHEME,
"external_url_scheme": settings.EXTERNAL_URI_SCHEME,
"external_host": settings.EXTERNAL_HOST,
"user_name": user.full_name,
}
@@ -163,7 +163,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:
"login_url": settings.HOME_NOT_LOGGED_IN,
"only_sso": settings.ONLY_SSO,
"external_host": settings.EXTERNAL_HOST,
"external_uri_scheme": settings.EXTERNAL_URI_SCHEME,
"external_url_scheme": settings.EXTERNAL_URI_SCHEME,
"realm_uri": realm_uri,
"realm_name": realm_name,
"realm_icon": realm_icon,