title: Can we send the HttpResponse of django `render()` in a python dictionary?
body: <p>What my use case is I need whole render() data into a dictionary which will be having other key values too and finally I can return it as a normal Response.</p>
  
  <p>Let suppose my code is:</p>
  
  <pre><code>from django.shortcuts import render
  
  def my_view(request):
      # View code here...
      return render(request, 'myapp/index.html', {
          'foo': 'bar',
      }, content_type='application/xhtml+xml')
  </code></pre>
  
  <p>Now what we are doing here is: render is basically returning a HttpResponse which we are returning. </p>
  
  <p>What I need is:</p>
  
  <p>Save the return response in a variable</p>
  
  <pre><code>x = render(request, 'myapp/index.html', {
              'foo': 'bar',
          }, content_type='application/xhtml+xml')
  </code></pre>
  
  <p>Then can we save it in a dictionary to return as a Response? Like this</p>
  
  <pre><code>y = {}
  y = {name: 'testing', render_response: x}
  return y
  </code></pre>