'Renders the overall Toolbar with panels inside.'

def render_toolbar(self):

    if (not self.should_render_panels()):
        self.store()
    try:
        context = {u'toolbar': self}
        return render_to_string(u'debug_toolbar/base.html', context)
    except TemplateSyntaxError:
        if (django.VERSION[:2] >= (1, 7)):
            from django.apps import apps
            staticfiles_installed = apps.is_installed(u'django.contrib.staticfiles')
        else:
            staticfiles_installed = (u'django.contrib.staticfiles' in settings.INSTALLED_APPS)
        if (not staticfiles_installed):
            raise ImproperlyConfigured(u"The    debug    toolbar    requires    the    staticfiles    contrib    app.    Add    'django.contrib.staticfiles'    to    INSTALLED_APPS    and    define    STATIC_URL    in    your    settings.")
        else:
            raise
