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
The rendered content of the response. The `.render()` method must have been called before `.content` can be accessed.
57
57
58
-
## .template_name
58
+
###.template_name
59
59
60
60
The `template_name`, if supplied. Only required if `HTMLRenderer` or some other custom template renderer is the accepted renderer for the response.
61
61
62
-
## .accepted_renderer
62
+
###.accepted_renderer
63
63
64
64
The renderer instance that will be used to render the response.
65
65
66
66
Set automatically by the `APIView` or `@api_view` immediately before the response is returned from the view.
67
67
68
-
## .accepted_media_type
68
+
###.accepted_media_type
69
69
70
70
The media type that was selected by the content negotiation stage.
71
71
72
72
Set automatically by the `APIView` or `@api_view` immediately before the response is returned from the view.
73
73
74
-
## .renderer_context
74
+
###.renderer_context
75
75
76
76
A dictionary of additional context information that will be passed to the renderer's `.render()` method.
77
77
78
78
Set automatically by the `APIView` or `@api_view` immediately before the response is returned from the view.
79
79
80
80
---
81
81
82
-
# Standard HttpResponse attributes
82
+
##Standard HttpResponse attributes
83
83
84
84
The `Response` class extends `SimpleTemplateResponse`, and all the usual attributes and methods are also available on the response. For example you can set headers on the response in the standard way:
0 commit comments