title: Django edit and delete from front end
body: <p>Views.py</p>
  
  <pre><code>def delete(request):
      customer = Customer.objects.get(id=5)
      customer.delete()
      return HttpResponse('deleted')
  </code></pre>
  
  <p>Template.py</p>
  
  <pre><code>&lt;form method="POST" action="/customer/"&gt;
   &lt;div style="float: right; 
                margin: 0px; padding: 05px; "&gt;
     &lt;p&gt; Name : &lt;select name ="delete_user"&gt;
     {% for customer in customer %}
     &lt;option value = "{{ customer }}"&gt; {{ customer.name }} &lt;/option&gt;
    {% endfor %}
  &lt;/select&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;input type="submit" value="delete"&gt;&lt;/p&gt;
   &lt;/div&gt;&lt;br /&gt;
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>(r'^delete/$','quote.excel.views.delete'), 
  </code></pre>
  
  <p>This isnot working,it needs to ftch users from database ,in drop down box ,when i select a particular user and click delete,it should delete the name.</p>
  
  <p>This is the error,i m getting</p>
  
  <p>DoesNotExist at /delete/</p>
  
  <p>Customer matching query does not exist.</p>