I want to check all params sent in POST so I've tried to print request.POST.__dict__
and it print's only these two: {'_encoding': 'utf-8', '_mutable': True}
I'm sure that there is more params
because it is tested before printed:
if 'input_text_area' in request.POST:
print request.POST.__dict__
What am I doing wrong?
print request.POST
应该没事。
__dict__
access the attributes of the object, not its members. request.POST
is a dict-like object; you access its members like any other dict. Printing request.POST
on its own will show you what it contains.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.