O'Reilly logo

Django 1.1 Testing and Debugging by Karen M. Tracey

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 8. When Problems Hide: Getting More Information

Sometimes code does not trigger a debug page to be displayed, but it also does not produce the correct results. In fact even when code does seem to be working correctly, at least in terms of the visible results shown in the browser, behind the scenes it may be doing unexpected things that could lead to trouble down the road. For example, if a page requires many (or very time-consuming) SQL queries, then it may seem to be working fine during development but then quickly cause server overload in a production environment.

It's good practice, then, to get into the habit of checking up on how code is behaving, even when external results are not showing any problems. First, this practice can reveal ...

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