如何在Django使用ajax的POST

2025-03-10 19:43:40
推荐回答(1个)
回答1:

看下django 文档关于csrf的实例吧有ajax的,需要在cookie中把csrftoken添加到post数据中,当然也可以关闭csrf