def METHOD_NAME(self, request) -> bool:
    """
    Checks if the request is for admin site.
    """
    if settings.AXES_ONLY_ADMIN_SITE and hasattr(request, "path"):
        try:
            admin_url = reverse("admin:index")
        except NoReverseMatch:
            return True
        return not re.match("^%s" % admin_url, request.path)
    return False