我想做以下几件事:
raise HttpResponseForbidden()
但是我得到了一个错误:
exceptions must be old-style classes or derived from BaseException, not HttpResponseForbidden
我该怎么做呢?
https://stackoverflow.com/questions/6618939
相似问题