B
B
blazer052015-03-06 19:38:49
Django
blazer05, 2015-03-06 19:38:49

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')
In urls.py
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)),
    )

I made these settings + collected static files and it does not work, there is no plugin panel in any browser! Although I did the same locally with the address 127.0.0.1 - everything works like a clock.
What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rostislav Grigoriev, 2015-03-06
@crazyzubr

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 this
INTERNAL_IPS = ('127.0.0.1', )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question