title: How do I print a list from views.py to the console?
body: <p>I'm a near-total newbie to Django, and am trying to debug a piece of code which is returning a null list to a template even though it should be returning a list with items in it. Is there any way to print the list to the console from within views.py for debugging purposes? I obviously can't run <code>python views.py</code> as the info I want is stored in a SQLite database, but if I try to include a <code>print</code> statement within the view I'm using, nothing prints when I refresh the page (and the server contacts my code). Is there a solution? I've looked around for a long time and can't find anything.</p>