Reputation: 633
I'm getting parameters through GET or POST.
On the book I'm reading, there's
Word = '%s' % self.request.POST['word']
I wonder whether there's a specific reason for that. I mean why not like this just simply?
Word = self.request.POST['word']
Upvotes: 0
Views: 62
Reputation: 2014
Throw away this book, if it tells you to capitalize first letter of the variables and not to use:
self.request.POST.get('word', '')
Upvotes: 1