POST method always return 403 Forbidden

前端 未结 7 1637
走了就别回头了
走了就别回头了 2021-02-19 01:46

I have read Django - CSRF verification failed and several questions (and answers) related to django and POST method. One of the best-but-not-working-for-me answer is https://sta

7条回答
  •  醉梦人生
    2021-02-19 02:04

    Try putting RequestContext in the search_form view's render_to_response:

    context_instance=RequestContext(request)
    

提交回复
热议问题