参考 https://docs.djangoproject.com/en/1.4/ref/contrib/csrf/
在模板里加上csrf_token:
发起POST请求:
AJAX全局设置:
设置csrf到模板文件:
参考 https://docs.djangoproject.com/en/1.4/ref/contrib/csrf/
在模板里加上csrf_token:
发起POST请求:
AJAX全局设置:
设置csrf到模板文件: