30.3.1 Testing

The most glaring omission in this book is testing. There is simply no way to build a website as large as the one in this book without tests, and the website we built was not particularly difficult in the grand scheme of things. Test-driven development (TDD) and behavior-driven development (BDD) are both considered great ways to add testing to projects, and Harry Percival’s Test-Driven Development with Python teaches TDD while building a Django site. Had this been an intermediate book, we would have added multiple tests for each of our views, as well as tests for forms, and a few very simple tests for model methods.

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.