How to specify the type of http request in django

前端 未结 0 1513
夕颜
夕颜 2021-01-11 09:18

I am writting a view named index. I want to specify that it can handle not only get requests but also post. In flask it was done by decorator, how to achieve it using django

相关标签:
回答
  • 消灭零回复
提交回复
热议问题