在登錄視圖中境钟,因login導(dǎo)包路徑錯誤出現(xiàn)的問題
?之前導(dǎo)包路徑 :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.
在網(wǎng)上找了很多也沒有結(jié)果直到后來看了看之前寫的登錄代碼......
改成:from django.contrib.auth import? login就沒有問題了俭识。