Django报错:AttributeError: 'WSGIRequest' object has no attribute 'Post'

写Django的时候遇到错误,说

'WSGIRequest' object has no attribute 'Post'

翻译过来就可以说是,request没有Post属性,

查找发现,把“Post”写成“POST”就可以了

报错里面还显示了具体位置在哪,直接按照报错去改就行了,如下所示:

Django报错:AttributeError: 'WSGIRequest' object has no attribute 'Post'_第1张图片

你可能感兴趣的:(Django报错:AttributeError: 'WSGIRequest' object has no attribute 'Post')