title: Python MongoDB : 'Cursor' object has no attribute 'name'
body: <p>Just started with mongo db .</p>
  
  <pre><code>context = {}
  if request.method == 'POST':
      context['name']  = request.POST['name']
      context['username']  = request.POST['username']
      context['mobile']  = request.POST['mobile']
      get = db.messages.find( { 'name' : request.POST['name'] } )
      if get is not None:
          print get.name
  </code></pre>
  
  <p>I have two records in my database .</p>
  
  <pre><code>&gt; db.messages.find()
  { "_id" : ObjectId("513f2cf1ae4cb53c1374b4f6"), "username" : "hello@gmail.com", "mobile" : "78978555", "name" : "rohit" }
  { "_id" : ObjectId("513f2cfeae4cb53c1374b4f7"), "username" : "hi@gmail.com", "mobile" : "8528522", "name" : "Rohti" }
  </code></pre>
  
  <p>when i am posting the form with name rohit . I am getting the above error .</p>
  
  <p>Please tell me what might i am doing wrong here .</p>
  
  <p>I know i am doing wrong query in mongo db .Please help me to get back on track .</p>