We've now created the home page for our site — an HTML page that displays some counts of records from the database and has links to our other still-to-be-created pages. Along the way we've learned a lot of fundamental information about url mappers, views, querying the database using our models, how to pass information to a template from your view, and how to create and extend templates.
Learn to implement and configure a functional database-driven website using the Django framework and MySQL.; Author: Sams Publishing; Updated: 23 Apr 2008; Section: Book Chapters; Chapter: General Reading; Updated: 23 Apr 2008
Django provides inbuilt testing capabilities. There are many ways to approach writing tests.To create a test, let’s introduce a bug into our Book model.