Skip to content

Instantly share code, notes, and snippets.

@augustogoulart
Created August 31, 2017 02:25
Show Gist options
  • Save augustogoulart/196aac5b96673c307b6997d755d5918a to your computer and use it in GitHub Desktop.
Save augustogoulart/196aac5b96673c307b6997d755d5918a to your computer and use it in GitHub Desktop.
def show_request_data(request):
values = request.META.items()
html = []
for k, v in values:
html.append('<tr><td>%s</td><td>%s</td></tr>' % (k, v))
return HttpResponse('<table>%s</table>' % '\n'.join(html))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment