title: Getting 'str' object has no attribute 'get' in Django
body: <p>views.py</p>
  
  <pre><code>def generate_xml(request, number):
      caller_id = 'x-x-x-x'
      resp = twilio.twiml.Response()
  
      with resp.dial(callerId=caller_id) as r:
           if number and re.search('[\d\(\)\- \+]+$', number):
              r.number(number)
           else:
               r.client('test')
     return str(resp)
  </code></pre>
  
  <p>url.py</p>
  
  <pre><code>url(r'^voice/(?P&lt;number&gt;\w+)$', 'django_calling.views.generate_xml', name='generating TwiML'),
  </code></pre>
  
  <p>Whenever I am requesting <code>http://127.0.0.1:8000/voice/number?id=98</code> getting following error:</p>
  
  <pre><code>Request Method:     GET
  Request URL:    http://127.0.0.1:8000/voice/number?id=90
  Django Version:     1.6.2
  Exception Type:     AttributeError
  Exception Value:    'str' object has no attribute 'get'
  
  Exception Location:     /usr/local/lib/python2.7/dist-     
  </code></pre>
  
  <p>Full Traceback:</p>
  
  <pre><code>Environment:
  
  Request Method: GET
  Request URL: http://127.0.0.1:8000/voice/number?id=90
  
  Django Version: 1.6.2
  Python Version: 2.7.5
  Installed Applications:
   ('django.contrib.admin',
  'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
  'django.contrib.messages',
  'django.contrib.staticfiles',
  'django_calling',
  'django_twilio',
  'twilio')
   Installed Middleware:
  ('django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.common.CommonMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'django.middleware.clickjacking.XFrameOptionsMiddleware')
  </code></pre>
  
  <p>I have just started to learn <code>Django</code>.</p>