I see there was a fix for this issue already but its still not working. I believe i have everything configured correctly and django-debug-panel 0.7.2 loads and works great for HTTP requests with . I am running Django 1.4.3.
I have fixed the issue by overriding django DebugToolbarMiddleware.show_toolbar() in
DebugPanelMiddleware as follows:
from debug_toolbar import middleware
from django.conf import settings
def show_toolbar(request):
if request.META.get('REMOTE_ADDR', None) not in settings.INTERNAL_IPS:
return False
return bool(settings.DEBUG)
middleware.show_toolbar = show_toolbar
The original DebugToolbarMiddleware.show_toolbar() was returning false when request.is_ajax().
I see there was a fix for this issue already but its still not working. I believe i have everything configured correctly and django-debug-panel 0.7.2 loads and works great for HTTP requests with . I am running Django 1.4.3.
I have fixed the issue by overriding django DebugToolbarMiddleware.show_toolbar() in DebugPanelMiddleware as follows:
The original DebugToolbarMiddleware.show_toolbar() was returning false when request.is_ajax().