From e13c542f51684713bebac31147872e032823ebc2 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 22 Apr 2024 12:21:36 -0700 Subject: [PATCH] Redirect homepage to mga --- server/vb/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/vb/views.py b/server/vb/views.py index 59b55c6..aac6442 100644 --- a/server/vb/views.py +++ b/server/vb/views.py @@ -4,7 +4,7 @@ from django.conf import settings from django.core.exceptions import PermissionDenied from django.http import HttpRequest, HttpResponse -from django.shortcuts import get_object_or_404, render +from django.shortcuts import get_object_or_404, redirect, render from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_GET, require_POST @@ -22,7 +22,8 @@ @require_GET def home(request: HttpRequest) -> HttpResponse: """Render the voterbowl homepage.""" - return render(request, "home.dhtml") + # return render(request, "home.dhtml") + return redirect("/mga/", permanent=False) @require_GET