Using ajax request in Django without form element

前端 未结 3 1072
北恋
北恋 2021-01-13 10:45

I\'d like to send an ajax request (via Jquery, although I think that\'s irrelevant in this situation) without using a form element in Django. According to the documentation,

3条回答
  •  花落未央
    2021-01-13 11:35

    You're right - this appears to be a bug in the documentation. You should be able to use csrf_exempt instead (same documentation page).

提交回复
热议问题