在登录视图中,因login导包路径错误出现的问题
之前导包路径 :from django.contrib.auth.views import login
AssertionError: sensitive_post_parameters didn't receive an HttpRequest. If you are decorating a classmethod, be sure to use @method_decorator.

在网上找了很多也没有结果直到后来看了看之前写的登录代码......
改成:from django.contrib.auth import login就没有问题了。
