I’ve recently been working my way through Practical Django Projects, Second Edition, by James Bennett, published by Apress. It’s good but, despite promises, the finished code isn’t available online. So I’ve bunged my finished code on Bitbucket.
James Bennett has his own repository but, at the time of writing, his example code seems to have stalled early on in the book. It can be a struggle to get the book’s code working. There are various errors which mean some of it doesn’t work as written. Plus some third party code has changed how it works since the book was published. And several templates are left as an exercise to the reader, merely referring to non-existent online examples.
I was surprised how few examples of I found online of people asking for help, or explaining how they got things working, so hopefully this (working) code will help others. Brett Haydon also has some useful chapter-by-chapter notes on the first edition of the book, which is worth a read too.
I should add that I didn’t write this code with the intention of making it public so, as with anything typed in as a tutorial from a book, it’s lacking all the helpful comments I’d usually include. But if you’re following along with the book and get stuck, hopefully it’s a help.