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
- }
- )
Advertisement
Add Comment
Please, Sign In to add comment