from django.core.context_processors import crsf报错

from django.core.context_processors import crsf报错:

原因是crsf包的位置不在django.core.context_processors中,而是在django.template.context_processors下。

所以我们将导包的代码改为:

from django.template.context_processors import csrf
原文地址:https://www.cnblogs.com/wyhluckdog/p/11362297.html