Skip to content

Commit

Permalink
Redirect homepage to mga
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Apr 22, 2024
1 parent 0de1096 commit e13c542
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/vb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit e13c542

Please sign in to comment.