v0.130ยค
Featยค
-
Access the HttpRequest object under
Component.request
.To pass the request object to a component, either: - Render a template or component with
RequestContext
, - Or set therequest
kwarg toComponent.render()
orComponent.render_to_response()
.Read more on HttpRequest.
-
Access the context processors data under
Component.context_processors_data
.Context processors data is available only when the component has access to the
request
object, either by: - Passing the request toComponent.render()
orComponent.render_to_response()
, - Or by rendering a template or component withRequestContext
, - Or being nested in another component that has access to the request object.The data from context processors is automatically available within the component's template.
Read more on HttpRequest.