From: Jan Szejko Date: Fri, 23 Jun 2017 15:30:47 +0000 (+0200) Subject: exception test X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/058cbe2bec62ff602f5f0dd2d0bad872ea0acad1?ds=sidebyside;hp=04c0efc51271dc440e3d24fa129aff2ccfe8406b exception test --- 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