How to raise or return 405 method not allowed in Django

后端 未结 0 966
北海茫月
北海茫月 2020-12-03 14:32

I want to raise or return a 405 Method not allowed but I cannot find how. Like in Flask you could do abort(405). Is there anyway to raise or return a Django 405 exception.

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