title: Django and docker: outputting information to console
body: <p>I'm using Django, which I run in a Docker container. There is something happening in my view that I can not understand. There are some <em>for</em> statements and conditional statements and I'd like to see exactly where things go awry. The easiest way for me to do this, is if I can output some variables to the console. Is this possible in Django? </p>
  
  <p>Something like:</p>
  
  <pre><code>for item in items:
     output-to-console("Running item ")+str(item.id)
  
     if item.active:
          output-to-console(str(item.id) + " is active")
  </code></pre>
  
  <p>Is this possible? I know there are debugging tools but it seems overkill in my situation if some output-to-console tool exists...</p>