How to display a custom error page for HTTP status 405 (method not allowed) in Django when using @require_POST

前端 未结 3 1146
孤独总比滥情好
孤独总比滥情好 2021-02-05 20:40

My question is simple, how do I display a custom error page for HTTP status 405 (method not allowed) in Django when using the @require_POST decorator?

I\'m

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 21:02

    I'm not sure that's possible. Perhaps you should consider filing a bug report.

提交回复
热议问题