title: TypeError 'tuple' object is not callable
body: <p>I got an error,
  TypeError at /ResultJSON/v1/results/
  'tuple' object is not callable      .</p>
  
  <p>I wrote a method in views.py,</p>
  
  <pre><code>results = OrderedDict([
          ('id',x.id)
          ('name', x.name)
          for x in Post.objects.all()
      ])
  </code></pre>
  
  <p>When I browsed this error,I read the error happen because there is no comma (,).</p>
  
  <p>But I added  commas between ('id',x.id) and  ('name', x.name) and last of  ('name', x.name),I got an error No Python interpreter configured for the project.</p>
  
  <p>So,I cannot understand why this error happen.How can I fix it?</p>
  
  <p>In views.py,I wrote </p>
  
  <pre><code>import json
  from collections import OrderedDict
  from django.http import HttpResponse
  from accounts.models import Post
  
  
  def render_json_response(request, data, status=None):
  
      json_str = json.dumps(data, ensure_ascii=False, indent=2)
      callback = request.GET.get('callback')
      if not callback:
          callback = request.POST.get('callback')
      if callback:
          json_str = "%s(%s)" % (callback, json_str)
          response = HttpResponse(json_str, content_type='application/javascript; charset=UTF-8', status=status)
      else:
          response = HttpResponse(json_str, content_type='application/json; charset=UTF-8', status=status)
      return response
  
  def UserResult(request):
  
      results = OrderedDict([
          ('id',x.id)
          ('name', x.name)
          for x in Post.objects.all()
      ])
  
      data = OrderedDict([ ('results', results) ])
      return render_json_response(request, data)
  </code></pre>