def __init__(self): HttpResponseForbidden.__init__(self) self.write(render_to_string('errors/http_forbidden.phtml'))
def __init__(self, request, msg): HttpResponseForbidden.__init__(self,'<h1>403 Forbidden</h1><p>%s</p>'%msg)
def __init__(self, message): DjangoHttpResponseForbidden.__init__(self, message_to_json(message), content_type='application/json')
def __init__(self): HttpResponseForbidden.__init__(self)#,msg="You don't have permission to access the requested object.") # Hopefully this doesn't break the error self.write(render_to_string('errors/http_forbidden.phtml')) self.write("You don't have permission to access the requested object.")