Mention direct_to_template as an alternate shortcut when wanting RequestContext
|Reported by:||SmileyChris||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently the docs suggest passing a RequestContext instance to the render_to_response() shortcut. But that means also importing RequestContext which makes it a bit less "short" and the actual "cut" less concise.
Perhaps we could mention using the simple generic view direct_to_template() as an alternate shortcut?
Change History (4)
Changed 8 years ago by SmileyChris
comment:1 Changed 8 years ago by SmileyChris
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed