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

Turning off the debug mode

Whenever an error occurs during development, Django presents a detailed error page with a lot of useful information. However, when the application goes into production, you don't want your users to see such information. Apart from confusing your users, you risk exposing your website to security problems if you let strangers see such information.

In the beginning when we used the django-admin.py mytweets command, which created all the basic configuration for the project for which we used the debug=True parameter in the settings.py file when this mode was True. The following extra work is done by Django to help you debug the problem faster. The memory usage of Django is more, as all the queries are stored as django.db.connection.queries ...

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