Summary

This is a short recap of what we covered in the fifth chapter.

This is the end of the fifth chapter. Let’s have a short recap of what we covered and the key takeaways:

  • We learned to test our view functions.
  • We learned to save form data to our database using the save() method.
  • We learned to get data from the database of a particular model using Catalogue.objects.all().
  • We learned about Django template tags, specifically the for...empty tag.
  • Finally, we learned about using docstrings: to add a description to our test method.

Get hands-on with 1200+ tech skills courses.