[Django]-How can i print unhandled exception to the Console instead of the Browser in Django?

10👍

Run the server with --traceback option and set DEBUG=False in settings.py.

You will get the traceback on console.

👤Nilesh

0👍

You might as well use django-sentry. This app can send tracebacks with local values etc … and display it conveniently. So if a user finds a way to trigger an exception, you will be able to see it in your sentry and fix it more easily.

👤jpic

Leave a comment