| | 314 | Note:: |
|---|
| | 315 | If you are using Django's ``render_to_response()`` shortcut to populate a |
|---|
| | 316 | template with the contents of a dictionary, your template will be passed a |
|---|
| | 317 | ``Context`` instance by default (not a ``RequestContext``). If you wish to |
|---|
| | 318 | use a ``RequestContext`` in your template rendering, you need to pass an |
|---|
| | 319 | optional third argument to ``render_to_response()``: a ``RequestContext`` |
|---|
| | 320 | instance. Your code might look like this:: |
|---|
| | 321 | |
|---|
| | 322 | def some_view(request): |
|---|
| | 323 | # ... |
|---|
| | 324 | return render_to_response('my_template'html', |
|---|
| | 325 | my_data_dictionary, |
|---|
| | 326 | context_instance = RequestContext(request)) |
|---|
| | 327 | |
|---|