feat(submissions): base submissions frontend + api

This commit is contained in:
2026-05-25 01:20:47 +02:00
parent 6a58a0289e
commit 9f9cb0a483
21 changed files with 735 additions and 94 deletions
+17 -1
View File
@@ -1 +1,17 @@
# Create your views here.
from django.http import HttpRequest
from django.shortcuts import render, get_object_or_404
from django.contrib.auth.decorators import login_required
from games.models import Game
@login_required
def submission_home(request: HttpRequest, game: str):
game_obj = get_object_or_404(Game, path=f"/submissions/{game}", enabled=True)
return render(
request,
"submissions.html",
{
"game": game_obj,
},
)