def broken_view(request):
    raise KeyError("Oops! Looks like you wrote some bad code.")
A view which just raises an exception, simulating a broken view.
dataset/ETHPy150Open django/django/tests/test_client/views.py/broken_view