title: Django Debug Toolbar shows 404 on panel
body: <p>My Django-Debug-Toolbar results in a Http404 as soon as I click on a Panel like "Requests". I checked my config multiple times but can't find whats wrong.</p>
  
  <p><strong>Versions:</strong></p>
  
  <ul>
  <li>django-debug-toolbar == 1.8</li>
  <li>django == 1.11.1</li>
  </ul>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code># DEBUG TOOLBAR
  
  if DEBUG:
  
      def custom_show_toolbar(request):
          """ Only show the debug toolbar to users with the superuser flag. """
          #return request.user.is_superuser
          if request.is_ajax():
              return False
          return True
  
      MIDDLEWARE += (
          'debug_toolbar.middleware.DebugToolbarMiddleware',
      )
      INSTALLED_APPS += (
          'debug_toolbar',
      )
      INTERNAL_IPS = ('127.0.0.1', )
      DEBUG_TOOLBAR_CONFIG = {
          'INTERCEPT_REDIRECTS': False,
          'SHOW_TOOLBAR_CALLBACK': 'core.settings.custom_show_toolbar',
          'HIDE_DJANGO_SQL': True,
          'TAG': 'body',
          'SHOW_TEMPLATE_CONTEXT': True,
          'ENABLE_STACKTRACES': True,
      }
  </code></pre>
  
  <p><strong>urls.py</strong></p>
  
  <pre><code>urlpatterns = [
      url(r'^$', core_views.home, name='home'),
      #url(r'^login/$', auth_views.login, name='login'),
      #url(r'^logout/$', auth_views.logout, name='logout'),
      #url(r'^oauth/', include('social_django.urls', namespace='social')),
      url(r'^admin/', admin.site.urls),
  ]
  
  if settings.DEBUG:
      import debug_toolbar
      urlpatterns = [
          url(r'^__debug__/', include(debug_toolbar.urls)),
      ] + urlpatterns
  </code></pre>
  
  <p><strong>Screenshot</strong></p>
  
  <p><a href="https://i.stack.imgur.com/3ZZov.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3ZZov.png" alt="django-debug-toolbar 404 error on panel click"></a></p>