title: Django view timeout handler
body: <p>I'm writing a <a href="https://slack.com/" rel="nofollow noreferrer">Slack</a> slash Command handler and I noticed that my responses don't get forwarded if they don't fit in the timeout of about five seconds. </p>
  
  <p>How could I wrap my Django view with a function that would detect if we're about to hit the timeout and if that's the case, terminate the connection with a specific response?</p>