-
I noticed that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
-
I noticed that |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
The
host
property is cached per request object. There is a new request object for each request, so the cached property from one request doesn't affect another. If you want to set a global default, you'd set theRequest.trusted_hosts
class attribute. If you want to override it for a specific request, you'd set it early in the request handling before accessinghost
. Cached properties can also be deleted to reset them.