title: Django HTTP delete method returns 405
body: <p>I have created a Django REST Webservice.
  If I run the following method (delete), I run into an 405 error</p>
  
  <p>my <strong>view.py</strong></p>
  
  <pre><code>@detail_route(methods="delete")
  def remove(self, request, id):
      logger.debug("REST " + request.get_full_path())
      result = HeatingMappingModel.objects.filter(id=id).delete()
      self.response = {"result": True, "data":result}
      return JsonResponse(self.response, safe=False)
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>...
     url(r'^detail/(?P&lt;id&gt;\d+)/$', views.HeatingMapping.as_view({'delete': 'remove'})),
  ...
  </code></pre>
  
  <p>This is the URL I call <code>http://localhost:8000/heating/detail/6/</code></p>
  
  <p>But I don't understand why, i read the documentation, but find no clear explanation.</p>
  
  <p>Can someone give me a hint about this issue?</p>