title: Returning Rendered Html via Ajax
body: <p>I am trying to return html via and Ajax call and I have the following snippet of code in my view</p>
  
  <pre><code>if request.is_ajax(): 
  t = loader.get_template('frontend/scroll.html')
  html = t.render(RequestContext({'dishes': dishes})
  return HttpResponse(json.dumps({'html': html}))
  </code></pre>
  
  <p>and my Ajax</p>
  
  <pre><code>  $.ajax({
             type: "POST",
             url: "/filter_home", 
             data: {'name': 'me', 'csrfmiddlewaretoken': '{{csrf_token}}'},
             success : function(data) {
                  $('.row.replace').html(data);
              }
     });
  </code></pre>
  
  <p>and it throws the following error</p>
  
  <pre><code>Exception Value:    'dict' object has no attribute 'META'
  Exception Location: /opt/bitnami/apps/django/lib/python2.7/sitepackages/django/core/context_processors.py in debug, line 39
  </code></pre>
  
  <p>what am I doing wrong?</p>