我想要用这个工具来看SQL等等的debug讯息
但是我怎麽用他都不会出现那条展示列
如果有高手看到这篇文章也麻烦指导一下
首先用pip安装
python -m pip install django-debug-toolbar
加入app
并将middleware加入到第一个
加入IP位置
docsystem_5/settings.py
INSTALLED_APPS = [
'django.contrib.staticfiles',
'debug_toolbar',
]
MIDDLEWARE = [
## django-debug_toolbar
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
INTERNAL_IPS = [
'127.0.0.1',
]
加入路径
docsystem_5/urls.py
import debug_toolbar
from django.contrib import admin
from django.urls import include, path
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls'), name='allauth'),
path('accounts/', include('auth_info.urls')),
path('',include('doc_info.urls')),
path('health/', include('health_check.urls')),
path('__debug__/', include(debug_toolbar.urls)),
]
Sass 我们应该大部分的人都有听过 那它到底是什麽东西呢?? 我们先来介绍它到底是啥 维基百科ht...
先简单回顾一下,今天预计分析两个题目: Remove Duplicates from Sorted ...
在Constructor的章节中我们使用建立实体的方式 function Person(name, ...
leetcode可以说是工程师的试炼场,收集了许多公司的面试考题,可说是题海无涯,那麽就开始刷题之...
访问控制(可见性) 对属性或方法的访问控制(PHP 7.1.0 以後支持常量),通过在前面添加关键字...