title: Django Bad File Descriptor on live server
body: <p>So, I will make this quick.</p>
  
  <p>When servicing the Django app onto a live serve and when it processes the views.py script, when ever there is a print statement from time to time a bad file descriptor error will pop up.</p>
  
  <p>I have found this very annoying and hard to fix, while still keeping the print statements.</p>
  
  <p>The way to resolve it is to simply refresh the page and the view works again and like nothing ever happened. </p>
  
  <p>I have been Googling and seems no info has shed light to resolve this.</p>