title: How does Django handle cancelled or interrupted requests?
body: <p>Let's say for my django application, I submit a request via the browser. In the middle of the processing, it creates a local resource (e.g., a file), which will be deleted at the end of the request.</p>
  
  <p>Now to throw a wrench into things. After my request has created the resource, but before deletion, I cancel the request in my browser. Does django still complete the request and delete the resource? Is there any way within the django code to know when the client connection has been closed, perhaps with some kind of signal?</p>