def get(self, request, *args, **kwargs):
    if (not request.user.is_anonymous):
        return HttpResponseRedirect('/')
    return super().get(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
    if (not request.user.is_anonymous):
        return HttpResponseRedirect('/')
    return super().get(request, *args, **kwargs)