1 from debug_toolbar.panels import DebugPanel
2 from django.template.loader import render_to_string
4 class HttpVarsDebugPanel(DebugPanel):
6 A panel to display HTTP variables (POST/GET).
9 # List of headers we want to display
19 'get': [(k, self.request.GET.getlist(k)) for k in self.request.GET.iterkeys()],
20 'post': [(k, self.request.POST.getlist(k)) for k in self.request.POST.iterkeys()],
21 'session': [(k, self.request.session.get(k)) for k in self.request.session.iterkeys()],
22 'cookies': [(k, self.request.COOKIES.get(k)) for k in self.request.COOKIES.iterkeys()],
24 return render_to_string('debug_toolbar/panels/http_vars.html', context)