Code from High Performance Django talk at DjangoCon US 2014