Django_Error:AttributeError: 'WSGIRequest' object has no attribute 'Post'

最近学习Django时,遇到了错误:AttributeError: ‘WSGIRequest’ object has no attribute ‘Post’,经过反复调试,发现问题所在,在views.py文件中的request只有POST方法,没有post方法。
划重点,以后写代码需要注意区分大小写

猜你喜欢

转载自blog.csdn.net/weixin_41996673/article/details/84845823