def request_data(request, template='base.html', data='sausage'):
 return render_to_response(template, {'get-foo': request.GET.get('foo', None), 'get-bar': request.GET.get('bar', None), 'post-foo': request.POST.get('foo', None), 'post-bar': request.POST.get('bar', None), 'request-foo': request.REQUEST.get('foo', None), 'request-bar': request.REQUEST.get('bar', None), 'data': data})

def request_data ( request , template = 'base.html' , data = 'sausage' ) : return render_to_response ( template , { 'get-foo' : request . GET . get ( 'foo' , None ) , 'get-bar' : request . GET . get ( 'bar' , None ) , 'post-foo' : request . POST . get ( 'foo' , None ) , 'post-bar' : request . POST . get ( 'bar' , None ) , 'request-foo' : request . REQUEST . get ( 'foo' , None ) , 'request-bar' : request . REQUEST . get ( 'bar' , None ) , 'data' : data } )
a simple view that returns the request data in the context .