title: 'str' object has no attribute 'get'
body: <p>I'm working on Braintree intergration in Django. I've followed <a href="https://www.braintreepayments.com/docs/python/guide/getting_paid">this guide</a>: </p>
  
  <p>However, I'm getting the error <code>'str' object has no attribute 'get'</code>.</p>
  
  <p>Views.py</p>
  
  <pre><code>from django.shortcuts import render, render_to_response
  from django.http.response import HttpResponse
  import braintree
  braintree.Configuration.configure(braintree.Environment.Sandbox,
                                "privatekey here",
                                "merchant key here",
                                "public key here")
  
  def form(request):
      return render_to_response('braintree.html')
  
  def create_transaction(request):
      if request.method == 'POST':
          print request.POST.get("number")       
          result = braintree.Transaction.sale({
           "amount": "1000.00",
           "credit_card": {
          "number": request.POST.get("number"),
          "cvv": request.POST.get("cvv"),
          "expiration_month": request.POST.get("month"),
          "expiration_year": request.POST.get("year")
      },
      "options": {
          "submit_for_settlement": True
      }
  })
  
          if result.is_success:
              return "&lt;h1&gt;Success! Transaction ID: {0}&lt;/h1&gt;".format(result.transaction.id)
          else:            
              return "&lt;h1&gt;Error: {0}&lt;/h1&gt;".format(result.message)
      else:      
          return HttpResponse('no post')
  </code></pre>
  
  <p>The exception is </p>
  
  <pre><code>Environment:
  
  
  Request Method: POST
  Request URL: http://lcoalhost/create_transaction
  
  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')
  Installed Middleware:
  ('django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware')
  
  
  Traceback:
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in   get_response 201.response = middleware_method(request, response)
  File "/usr/local/lib/python2.7/dist-packages/django/middleware/clickjacking.py" in process_response 30.  if response.get('X-Frame-Options', None) is not None:
  
  Exception Type: AttributeError at /create_transaction
  Exception Value: 'str' object has no attribute 'get'
  </code></pre>