1👍
✅
request.POST['d']
or to avoid raising an Exception
if it’s not there use
request.POST.get('d', False)
1👍
You can always get the blog id from ?= parameter in url.
When user goes to comment someone’s blog the url might be http://yoursite.com/blog/id/comment or http://yoursite.com/blog/comment?blogid=12345.
Source:stackexchange.com