def render_error(request, domain, message):
    messages.error(request, _(message))
    return HttpResponseRedirect(base.ImportCases.get_url(domain=domain))
Load error message and reload page for excel file load errors
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/importer/views.py/render_error