1.  Project setting.py开启CSRF

2.  Template htmlform表单,post方法

a)         加入{% csrf_token %}

3.  View 函数中,使用RequestContext代替Context

同一project下所有代码需同时改正,否则会导致post方法提交表单不可用并报错