def logout_with_redirect(request):
    logout(request)
    return redirect(reverse('home'))
Get the indexer for the nearest index labels; requires an index with
dataset/ETHPy150Open nvbn/coviolations_web/accounts/views.py/logout_with_redirect--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._get_nearest_indexer