[英]get value from POST request in Django
I want to get the value of the key 'result' but every time I'm trying to get it it becomes empty我想获得关键“结果”的价值,但每次我试图获得它时它都变成空的
if request.method == 'POST':
result = request.POST
after printing the result打印结果后
as you can see there is something there but when I'm trying to print:如您所见,那里有一些东西,但是当我尝试打印时:
request.POST.get('result')
or要么
request.POST['result']
I'm getting an empty string我得到一个空字符串
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.