Django调试工具debug_toolbar
django 调试工具debug_toolbar
from django.conf.urls import url if settings.DEBUG: import debug_toolbar urlpatterns = [url(r'^__debug__/', include(debug_toolbar.urls)), ] + urlpatterns# 查看您的Haystack后端所做的查询 haystack_panel.panel.HaystackDebugPanel # 验证您的HTML并显示警告和错误 debug_toolbar_htmltidy.panels.HTMLTidyDebugPanel # 使用调试语句检索并显示您指定的信息。Inspector面板也会默认登录到控制台 inspector_panel.panels.inspector.InspectorPanel # 提供了一个profiling panel,它包含了line_profiler的输出 debug_toolbar_line_profiler.panel.ProfilingPanel # 跟踪memcached的使用情况。它目前支持pylibmc和memcache库 memcache_toolbar.panels.memcache.MemcachePanel或memcache_toolbar.panels.pylibmc.PylibmcPanel # 添加MongoDB调试信息 debug_toolbar_mongo.panel.MongoDebugPanel # 在你的django应用程序中跟踪neo4j rest API调用,这也适用于 neo4django和neo4jrestclient neo4j_panel.Neo4jPanel # 浏览在django.contrib.sites中注册的网站并在它们之间切换。用于调试使用动态设置的SITE_ID的django-dynamicsites项目。 sites_toolbar.panels.SitesDebugPanel # 显示您的Django应用程序的模板渲染时间 template_timings_panel.panels.TemplateTimings.TemplateTimings # 轻松切换登录用户,查看当前用户的属性 debug_toolbar_user_panel.panels.UserPanel
最后更新于