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 <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-04-17 09:23:31 +12:00
parent 375e7587d1
commit 13a15cf3e5

View File

@ -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")})
]