Возвращаю из view ответ:
render_to_response('index.html', {'a': 5})render_to_response('index.html', {'a': 5, 'user': 'Ivan'})render_to_response('index.html', {'a': 5})render_to_response('index.html', {'a': 5, 'user': 'Ivan'})def custom_proc(request):
return {
'usr': request.session['name'],
}
def main(request):
return render_to_response('index.html', context_instance = RequestContext(request, processors = [custom_proc]))
..context_instance = RequestContext(request, processors = [custom_proc]))