标签:blog http io ar os sp for on 2014
网上有解决办法,我自己的组合是:
一,FORM加标识
<form action="" method="post">
{% csrf_token %}
类型:<select name="salt_class">
二,VIEW导入Redirect
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.shortcuts import render
三,注意SETTING里我加 ‘django.middleware.csrf.CsrfResponseMiddleware‘,反而出错,只留一条即好。
‘django.middleware.csrf.CsrfViewMiddleware‘,
Django 403错误:CSRF verification failed. Request aborted
标签:blog http io ar os sp for on 2014
原文地址:http://www.cnblogs.com/aguncn/p/4096612.html