Separate views into their own file

This commit is contained in:
2024-07-09 15:11:27 +02:00
parent e0dbfb1c46
commit ec75ce1ccb
6 changed files with 246 additions and 166 deletions

18
core/views/games.py Normal file
View File

@ -0,0 +1,18 @@
from __future__ import annotations
import logging
from django.views.generic import ListView
from twitch_app.models import (
Game,
)
logger: logging.Logger = logging.getLogger(__name__)
class GameView(ListView):
model = Game
template_name: str = "games.html"
context_object_name: str = "games"
paginate_by = 100