I don't like this too much, can we use this instead:

    if CSRF_EXEMPT:
        js_error_view = csrf_exempt(JSErrorHandlerView.as_view())
    else:
        js_error_view = JSErrorHandlerView.as_view()

And then use `js_error_view` in `urls.py`