diff --git a/hip/templates/404.html b/hip/templates/404.html new file mode 100644 index 00000000..e02ecc82 --- /dev/null +++ b/hip/templates/404.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +

The page was not found.

+{% endblock content %} \ No newline at end of file diff --git a/hip/templates/500.html b/hip/templates/500.html new file mode 100644 index 00000000..2c1fbc91 --- /dev/null +++ b/hip/templates/500.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +

There was an error.

+{% endblock content %} \ No newline at end of file diff --git a/hip/urls.py b/hip/urls.py index 6f4014b4..a8907caa 100644 --- a/hip/urls.py +++ b/hip/urls.py @@ -16,6 +16,11 @@ from apps.search import views as search_views +# Explicitly define our handlers for 404-status-code and 500-status-code responses. +handler404 = "apps.hip.views.handler404" +handler500 = "apps.hip.views.handler500" + + urlpatterns = [ path("search/", search_views.search, name="search"), path(