title: How to time Django queries
body: <p>I've always used Python's <code>timeit</code> library to time my little Python programs.
  Now I'm developing a Django app and I was wondering how to time my Django functions, especially queries.</p>
  
  <p>For example, I have a <code>def index(request)</code> in my views.py which does a bunch of stuff when I load the index page.
  How can I use <code>timeit</code> to time this particular function without altering too much my existing functions?</p>