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

Debugging

Debugging is the process of finding and removing bugs (error). When we develop the web application with Django, we often need a case where we need to know the variables submitted in an Ajax request.

The tools for debugging are:

  • The Django debug toolbar
  • IPDB ( interactive debugger)

The Django debug toolbar

This is a set of panels that is used to display various information about the current page's request/response, and in more detail when the panel is clicked on.

Rather than simply displaying the debug information in HTML comments, the Django debug tool displays it in a more advanced way.

Installing the Django debug toolbar

To install the Django debug toolbar, run the following command:

$ pip install django-debug-toolbar

After the installation, ...

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