A better debug page

Often, you may wish for more interactivity in the default Django error page. The django-extensions package is shipped with the fantastic Werkzeug debugger that provides exactly this feature. In the following screenshot of the same exception, note the fully interactive Python interpreter available at each level of the call stack:

Enhanced error page by Werkzeug with embedded interactive prompts

To enable this, in addition to adding django_extensions to your INSTALLED_APPS, you will need to run your test server as follows:

$ python manage.py runserver_plus 

Despite the reduced debugging information, I find the Werkzeug debugger to be more useful than the default error page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.200.197