def nesting_exception_view(request):
 client = Client()
 client.get('/get_view/')
 raise Exception('exception message')

def nesting_exception_view ( request ) : client = Client ( ) client . get ( '/get_view/' ) raise Exception ( 'exception message' )
a view that uses a nested client to call another view and then raises an exception .