On 11/07/2011 12:49 PM, Tom Evans wrote:
> On Sun, Nov 6, 2011 at 12:30 AM, Gelonida N <gelon...@gmail.com> wrote:
>> Hi,
>>
>> If I understood well, then the Django debug toolbar is only working if
>> debugging is enabled.
>>
>> What I wanted to do is is to disable the explicit django error messages
>> for all but one specific IP address and to disable the django debug
>> toolbar for this one address.
>>
> 
> You've not understood well. Whether the toolbar is displayed depends
> upon a number of things, as explained in the docs:
> 
> https://github.com/django-debug-toolbar/django-debug-toolbar
> 
> See in particular INTERNAL_IPS and SHOW_TOOLBAR_CALLBACK.
> 
> Cheers
> 
> Tom
> 
Thanks Tom, Thanks for putting me straight.

In fact it seems I misread the documentation quite a bit.

I knew about INTERNAL_IPS, but misunderstood it. I thought, that the IP
must be in INTERNAL_IPs AND that DEBUG must be true.

So probably I just have some other hickup in settings.py,

I wasn't aware of SHOW_TOOLBAR_CALLBACK

I should be able to setup the debug toolbasr is I intended to
SHOW_TOOLBAR_CALLBACK should give me even finer granularity and control.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to