diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-04-17 09:23:31 +1200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-04-24 10:15:47 +1200 |
commit | 13a15cf3e591796e1c0718514bdd8c5844b052d8 (patch) | |
tree | 42c2a0694b781d839ba0e0b5f321c42ad1465127 /layerindex | |
parent | 375e7587d143db44d4c706524a6f327f66f21531 (diff) | |
download | openembedded-core-contrib-13a15cf3e591796e1c0718514bdd8c5844b052d8.tar.gz |
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>
Diffstat (limited to 'layerindex')
-rw-r--r-- | layerindex/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layerindex/urls.py b/layerindex/urls.py index 25e11a592d..b0b74314d3 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")}) ] |