Add custom 404 and 500 error handlers with corresponding templates
All checks were successful
Ruff / ruff (push) Successful in 16s

This commit is contained in:
2025-05-02 04:28:03 +02:00
parent f5a874c6df
commit abab9b359f
4 changed files with 60 additions and 2 deletions

View File

@ -8,8 +8,8 @@ from core.views import get_game, get_games, get_home
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
handler404 = "core.views.handler404"
handler500 = "core.views.handler500"
# TODO(TheLovinator): Add a robots.txt file.
# https://developers.google.com/search/docs/crawling-indexing/robots/intro