Questions tagged «django-debug-toolbar»

25
django-debug-toolbar未显示
我看着其他问题,无法解决... 我做了以下安装django-debug-toolbar的操作: pip安装django-debug-toolbar 添加到中间件类: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', # Uncomment the next line for simple clickjacking protection: # 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', ) 3添加了INTERNAL_IPS: INTERNAL_IPS =('174.121.34.187',) 4将debug_toolbar添加到已安装的应用程序 我没有收到任何错误或任何内容,并且该工具栏也没有显示在任何页面上,甚至没有显示在管理页面上。 我什至将debug_toolbar模板的目录添加到了我的 TEMPLATE_DIRS
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.