Answer the question
In order to leave comments, you need to log in
Setting up django 1.9 and django-debug-toolbar?
Hello. Installing django-debug-toolbar ran into an obscure problem. Help me to understand.
Debug toolbar is displayed only on the admin panel and on error pages. On pages that return 200, the toolbar does not appear.
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'myapp',
'debug_toolbar',
]
MIDDLEWARE_CLASSES = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
INTERNAL_IPS = ('127.0.0.1', )
Answer the question
In order to leave comments, you need to log in
Found the answer on Stack Overflow:
The current stable version 0.11.0 requires the following things to be true for the toolbar to be shown:
<h1>Hello</h1>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question