Answer the question
In order to leave comments, you need to log in
Django Debug Toolbar not working?
Django Debug Toolbar module not working. I downloaded, installed and configured this module according to this instruction, but the plugin did not work on the server. It works fine locally, but doesn't want to remotely?
django-debug-toolbar.readthedocs.org/en/1.2.2/inst...
Here's how I did it:
In settings.py
INSTALLED_APPS = (
'suit',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'index',
'info',
'myforms',
'blog',
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
)
INTERNAL_IPS = ('мой статический ip')
from django.conf import settings
from django.conf.urls import include, patterns, url
if settings.DEBUG:
import debug_toolbar
urlpatterns += patterns('',
url(r'^__debug__/', include(debug_toolbar.urls)),
)
Answer the question
In order to leave comments, you need to log in
Most likely the matter is in the INTERNAL_IPS parameter, on the server you need to add the desired IP. And you have an error, this parameter must be a tuple, that is, not like this,
but like thisINTERNAL_IPS = ('127.0.0.1', )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question