From 058cbe2bec62ff602f5f0dd2d0bad872ea0acad1 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 23 Jun 2017 17:30:47 +0200 Subject: [PATCH] exception test --- src/wolnelektury/urls.py | 4 ++++ src/wolnelektury/views.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/wolnelektury/urls.py b/src/wolnelektury/urls.py index 71bf1b54a..2a3f6c6a8 100644 --- a/src/wolnelektury/urls.py +++ b/src/wolnelektury/urls.py @@ -84,3 +84,7 @@ urlpatterns += [ url(r'^wolontariat/$', RedirectView.as_view( url='/info/wlacz-sie-w-prace/', permanent=False)), ] + +urlpatterns += [ + url(r'^error-test/$', views.exception_test), +] diff --git a/src/wolnelektury/views.py b/src/wolnelektury/views.py index 7d6ed2be9..7573df5ff 100644 --- a/src/wolnelektury/views.py +++ b/src/wolnelektury/views.py @@ -184,3 +184,7 @@ def latest_blog_posts(request, feed_url=None, posts_to_show=5): @ssi_included(use_lang=False) def widget(request): return render(request, 'widget.html') + + +def exception_test(request): + raise Exception('Exception test') \ No newline at end of file -- 2.20.1