第五章 保存用户输入
摘要:5.1编写表单,发送POST请求 调整一下lists/templates/home.html中的模版 此时运行,在Django的调试页面,会显示有CSRF错误,所以,使用‘模版标签’’,添加CSRF令牌 运行功能测试,出现预期的失败 5.2在服务器中处理POST请求 修改视图函数,让它能够处理POS
阅读全文
posted @ 2017-10-04 14:08
posted @ 2017-10-04 14:08
posted @ 2017-10-03 21:46
posted @ 2017-09-28 18:07
posted @ 2017-09-28 17:43
posted @ 2017-09-28 17:27