from django.shortcuts import render
from gamelist.models import Game
from django.contrib.auth.models import User


# Create your views here.
def index(request):
    num_games = Game.objects.all().count()
    num_customers = User.objects.all().count()
    return render(
        request,
        "index.html",
        context={"num_games": num_games, "num_customers": num_customers},
    )

452cacf28e7bb80abb33d2eed265b0d1fea6430d
<mask token>

<mask token>


def index(request):
    num_games = Game.objects.all().count()
    num_customers = User.objects.all().count()
    return render(request, 'index.html', context={'num_games': num_games,
        'num_customers': num_customers})

from django.shortcuts import render
from gamelist.models import Game
from django.contrib.auth.models import User


def index(request):
    num_games = Game.objects.all().count()
    num_customers = User.objects.all().count()
    return render(request, 'index.html', context={'num_games': num_games,
        'num_customers': num_customers})

from django.shortcuts import render
from gamelist.models import Game
from django.contrib.auth.models import User


# Create your views here.
def index(request):
    num_games = Game.objects.all().count()
    num_customers = User.objects.all().count()
    return render(
        request,
        "index.html",
        context={"num_games": num_games, "num_customers": num_customers},
    )
