From 1bd3a2223b3b89f42b26e2c825eea4e08b784a82 Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Wed, 1 Aug 2018 08:07:45 +0300 Subject: [PATCH] add project 404 and 500 handlers --- eshop_project/urls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eshop_project/urls.py b/eshop_project/urls.py index a95b52b..6ab5426 100644 --- a/eshop_project/urls.py +++ b/eshop_project/urls.py @@ -53,3 +53,6 @@ if settings.DEBUG: urlpatterns = [ re_path(r'^__debug__/', include(debug_toolbar.urls)) ] + urlpatterns + +handler404 = 'core.views.Handler404View' +handler500 = 'core.views.Handler500View'