Stuff and things
This commit is contained in:
25
core/urls.py
25
core/urls.py
@ -4,15 +4,36 @@ 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 game_view, games_view, index, reward_campaign_view
|
||||
from core.views import game_view, games_view, index
|
||||
|
||||
app_name: str = "core"
|
||||
|
||||
# TODO(TheLovinator): Add a 404 page and a 500 page.
|
||||
# https://docs.djangoproject.com/en/dev/topics/http/views/#customizing-error-views
|
||||
|
||||
# TODO(TheLovinator): Add a robots.txt file.
|
||||
# https://developers.google.com/search/docs/crawling-indexing/robots/intro
|
||||
|
||||
# TODO(TheLovinator): Add sitemaps
|
||||
# https://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/
|
||||
|
||||
# TODO(TheLovinator): Add a favicon.
|
||||
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-files-in-development
|
||||
|
||||
# TODO(TheLovinator): Add funding.json
|
||||
# https://floss.fund/funding-manifest/
|
||||
|
||||
# TODO(TheLovinator): Add a humans.txt file.
|
||||
# https://humanstxt.org/
|
||||
|
||||
# TODO(TheLovinator): Add pghistory context when importing JSON.
|
||||
# https://django-pghistory.readthedocs.io/en/3.5.0/context/#using-pghistorycontext
|
||||
|
||||
# The URL patterns for the core app.
|
||||
urlpatterns: list[URLPattern | URLResolver] = [
|
||||
path(route="admin/", view=admin.site.urls),
|
||||
path(route="", view=index, name="index"),
|
||||
path(route="game/<int:twitch_id>/", view=game_view, name="game"),
|
||||
path(route="games/", view=games_view, name="games"),
|
||||
path(route="reward_campaigns/", view=reward_campaign_view, name="reward_campaigns"),
|
||||
*debug_toolbar_urls(),
|
||||
]
|
||||
|
Reference in New Issue
Block a user