How to write a Django view for a POST request

后端 未结 2 1745
太阳男子
太阳男子 2020-12-15 06:41

I have written a very small example: a junit button which sends a POST request with a pair of values:






        
2条回答
  •  眼角桃花
    2020-12-15 06:57

    You are receiving a 403 because of CSRF protection - you have not provided a token to protect yourself from attacks. The documentation tells you all you need to know.

提交回复
热议问题