You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolves and makes available the Site object for the host at request.site. However, the LazySite object that wraps the Site object shadows the name property of the Site record with the host name, i.e:
This means on the publish subdomain, accessing request.site.name returns the host name 'publish' (which can easily be accessed at request.host.name) rather then the site name, e.g. 'Publishing Service'.
The text was updated successfully, but these errors were encountered:
Using
host_site
callback in hosts.py, as per the documentation, e.g.resolves and makes available the
Site
object for the host atrequest.site
. However, theLazySite
object that wraps theSite
object shadows thename
property of theSite
record with the host name, i.e:This means on the
publish
subdomain, accessingrequest.site.name
returns the host name 'publish' (which can easily be accessed atrequest.host.name
) rather then the site name, e.g. 'Publishing Service'.The text was updated successfully, but these errors were encountered: