title: How to do cProfile in django production server
body: <p>I want to monitor my views in Django aplication at production environment.So, I came across the solution <a href="http://djangosnippets.org/snippets/2126/" rel="nofollow">script</a> I tested in my local environment.works fine!!.</p>
  
  <p>When I went live with the production environment, I was facing issue with <strong>Unhandled Exception due to debug=True</strong>.I used debug=True(serve the static by django server) in local environment also.</p>
  
  <p>Is it possible to use the above link <a href="http://djangosnippets.org/snippets/2126/" rel="nofollow">middleware</a> for accessing the hotshot of the corresponding django view?</p>
  
  <p>Could you please help me out to do hotshot or cProfile which is referred in the link for django production server?</p>