Created
August 31, 2017 02:25
-
-
Save augustogoulart/196aac5b96673c307b6997d755d5918a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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