O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. The Art of Debugging

In this chapter, you will learn three important things about Django's web development, which every programmer should know about. These are the concepts and techniques that you would need when your code goes wrong:

  • Logging
  • Debugging
  • IPDB – interactive way of busting bugs

Logging

Every application that runs on production must have some logging enabled; if not, then it will be very difficult to figure out what and where something went wrong.

Django uses Python's basic logging, thus we will go through the Python logging in detail in the following section and see how we can use the logging service to log in Django.

The formal definition of logging is the tracking of events in a software. Developers call the logging service ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required