15 lines
418 B
Python
15 lines
418 B
Python
from django.contrib.auth.decorators import login_required
|
|
from django.shortcuts import render
|
|
|
|
from fupogfakta.models import Category
|
|
|
|
|
|
@login_required
|
|
def host_screen(request):
|
|
categories = Category.objects.filter(is_active=True).order_by("name")
|
|
return render(request, "lobby/host_screen.html", {"categories": categories})
|
|
|
|
|
|
def player_screen(request):
|
|
return render(request, "lobby/player_screen.html")
|