I’d like to do the following:
raise HttpResponseForbidden()
But I get the error:
exceptions must be old-style classes or derived from BaseException, not HttpResponseForbidden
How should I do this?
I’d like to do the following:
raise HttpResponseForbidden()
But I get the error:
exceptions must be old-style classes or derived from BaseException, not HttpResponseForbidden
How should I do this?