From 13a15cf3e591796e1c0718514bdd8c5844b052d8 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 17 Apr 2018 09:23:31 +1200 Subject: [PATCH] urls: add required exception parameter for page_not_found Django 1.9+ requires an exception parameter for the page_not_found view. Signed-off-by: Paul Eggleton --- layerindex/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/urls.py b/layerindex/urls.py index 25e11a5..b0b7431 100644 --- a/layerindex/urls.py +++ b/layerindex/urls.py @@ -146,5 +146,5 @@ urlpatterns = [ ClassicRecipeDetailView.as_view( template_name='layerindex/classicrecipedetail.html'), name='classic_recipe'), - url(r'.*', page_not_found) + url(r'.*', page_not_found, kwargs={'exception': Exception("Page not Found")}) ]