Mention direct_to_template as an alternate shortcut when wanting RequestContext
|Reported by:||Chris Beaven||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)
comment:1 Changed 9 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Design decision needed|