Refactor models
This commit is contained in:
@ -4,7 +4,7 @@ from debug_toolbar.toolbar import debug_toolbar_urls # type: ignore[import-unty
|
||||
from django.contrib import admin
|
||||
from django.urls import URLPattern, URLResolver, path
|
||||
|
||||
from core.views import get_game, get_games, get_home, get_import
|
||||
from core.views import get_game, get_games, get_home
|
||||
|
||||
app_name: str = "core"
|
||||
|
||||
@ -33,8 +33,7 @@ app_name: str = "core"
|
||||
urlpatterns: list[URLPattern | URLResolver] = [
|
||||
path(route="admin/", view=admin.site.urls),
|
||||
path(route="", view=get_home, name="index"),
|
||||
path(route="game/<int:twitch_id>/", view=get_game, name="game"),
|
||||
path(route="game/<int:twitch_id>/", view=get_game, name="game_detail"),
|
||||
path(route="games/", view=get_games, name="games"),
|
||||
path(route="import/", view=get_import, name="import"),
|
||||
*debug_toolbar_urls(),
|
||||
]
|
||||
|
Reference in New Issue
Block a user