SHARE
TWEET
Untitled
a guest
Jan 1st, 2013
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def index(request):
- latest_posts_list = Post.objects.all().order_by('-pub_date')[:5]
- req = request.method # is shown easily in {{ req }} because it's a string
- # request.body is a byte string and i see nothing if using {{ req }}
- req = request.body.decode('utf-8') # doesn't help
- req = unicode(request.body) # doesn't help
- return render_to_response(
- 'posts/index.html',
- {'latest_posts_list' : latest_posts_list,
- 'req' : req
- }
- )
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.
