daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Jan 1st, 2013 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # VIEW
  2.  
  3. def index(request):
  4.         req = [str(x)+" : "+str(request.META.get(x)) for x in iter(request.META)] # A LIST OF STRINGS
  5.         return render_to_response(
  6.         'posts/index.html',
  7.                 { 'req' : req }
  8.         )
  9.  
  10. # TEMPLATE
  11. {% for param in req %}
  12.         <p>{{ param }}</p>
  13. {% endfor %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top