Code from the tutorial at www.tangowithdjango.com