如图:

解决办法参见:
我的解决办法:
1、在模板页表单下添加代码
点击(此处)折叠或打开
- {% csrf_token %}
点击(此处)折叠或打开
-
from django.template import RequestContext
-
- return render_to_response('tepaozu/reged.html', {'user':user_id}, context_instance = RequestContext(request))
这个错误困扰了俺一天,至于原理,随后细看看。