The "Django Tools" Django_debug_toolbar use

Source: Internet
Author: User

1. Download and install

The source is on GitHub.

https://github.com/django-debug-toolbar/django-debug-toolbar/

Source download can be directly executed Python setup.py install installation

2. Django Config 2.1 settings.py config file add app Debug_toolbar

2.2 Adding middleware

Debug_toolbar.middleware.DebugToolbarMiddleware

2.3 Configuring the Internal IP

Declare the variable in the settings.py file as follows

Internal_ips = (' 127.0.0.1 ',)

2.4 Panel Registration

Debug_toolbar_panels = (' Debug_toolbar.panels.version.VersionDebugPanel ', ' debug_ Toolbar.panels.timer.TimerDebugPanel ', ' debug_toolbar.panels.settings_vars. Settingsvarsdebugpanel ', ' debug_toolbar.panels.headers.HeaderDebugPanel ', ' debug_toolbar.panels.request_vars. Requestvarsdebugpanel ', ' debug_toolbar.panels.template.TemplateDebugPanel ', ' debug_ Toolbar.panels.sql.SQLDebugPanel ', ' debug_toolbar.panels.signals.SignalDebugPanel ', ' debug_ Toolbar.panels.logger.LoggingPanel ',)

The "Django Tools" Django_debug_toolbar use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.